This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Enable --enable-generated-files-in-srcdir with cross builds
- From: Adam Nemet <anemet at lnxw dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 8 Sep 2004 13:51:20 -0700
- Subject: [PATCH] Enable --enable-generated-files-in-srcdir with cross builds
Hi,
With cross builds, --enable-generated-files-in-srcdir does not copy
srcextra files into the source tree. install.texi does not mention
this limitation so I assume this is unintentional. Below is a patch
to fix it.
I tested with a cross build of i386-lynx-lynxos that srcextra files
are now copied into the source tree. Also regression tested on
i686-pc-linux-gnu.
OK to apply?
2004-09-07 Adam Nemet <anemet@lnxw.com>
* Makefile.in (all.cross): Add srcextra.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1371
diff -u -p -r1.1371 Makefile.in
--- Makefile.in 5 Sep 2004 09:25:22 -0000 1.1371
+++ Makefile.in 8 Sep 2004 20:25:39 -0000
@@ -1128,7 +1128,7 @@ config.status: $(srcdir)/configure $(src
all.internal: start.encap rest.encap doc
# This is what to compile if making a cross-compiler.
all.cross: native gcc-cross cpp$(exeext) specs \
- $(LIBGCC) $(EXTRA_PARTS) lang.all.cross doc
+ $(LIBGCC) $(EXTRA_PARTS) lang.all.cross doc @GENINSRC@ srcextra
# This is what must be made before installing GCC and converting libraries.
start.encap: native xgcc$(exeext) cpp$(exeext) specs \
xlimits.h lang.start.encap @GENINSRC@ srcextra