This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 09 of 10] cc/gcc: fix building of ecjx


# HG changeset patch
# User "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
# Date 1293739776 -3600
# Node ID dd80bae5316a12d4862c1bf2760a48b01597eb68
# Parent  ce3a2668d482978f0687773e4ce48c4d25449e37
cc/gcc: fix building of ecjx

When building ecjx, the compiler for the build system must
be used, not for the compiler for the host system.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

diff --git a/patches/gcc/4.5.0/100-ecjx-host.patch b/patches/gcc/4.5.0/100-ecjx-host.patch
new file mode 100644
--- /dev/null
+++ b/patches/gcc/4.5.0/100-ecjx-host.patch
@@ -0,0 +1,13 @@
+diff -durN gcc-4.5.2.orig/libjava/Makefile.in gcc-4.5.2/libjava/Makefile.in
+--- gcc-4.5.2.orig/libjava/Makefile.in	2010-12-16 13:49:03.000000000 +0100
++++ gcc-4.5.2/libjava/Makefile.in	2010-12-29 23:02:41.000000000 +0100
+@@ -9463,6 +9463,9 @@
+ ecjx$(EXEEXT): $(ecjx_OBJECTS) $(ecjx_DEPENDENCIES) 
+ 	@rm -f ecjx$(EXEEXT)
+ 	$(ecjx_LINK) $(ecjx_OBJECTS) $(ecjx_LDADD) $(LIBS)
++ecjx.$(OBJEXT): $(ecjx_SOURCES)
++	@rm -f ecjx.$(OBJEXT)
++	$(CC_FOR_BUILD) $(BUILD_CFLAGS) -c -o $@ $<
+ gappletviewer$(EXEEXT): $(gappletviewer_OBJECTS) $(gappletviewer_DEPENDENCIES) 
+ 	@rm -f gappletviewer$(EXEEXT)
+ 	$(gappletviewer_LINK) $(gappletviewer_OBJECTS) $(gappletviewer_LDADD) $(LIBS)
diff --git a/patches/gcc/4.5.1/100-ecjx-host.patch b/patches/gcc/4.5.1/100-ecjx-host.patch
new file mode 100644
--- /dev/null
+++ b/patches/gcc/4.5.1/100-ecjx-host.patch
@@ -0,0 +1,13 @@
+diff -durN gcc-4.5.2.orig/libjava/Makefile.in gcc-4.5.2/libjava/Makefile.in
+--- gcc-4.5.2.orig/libjava/Makefile.in	2010-12-16 13:49:03.000000000 +0100
++++ gcc-4.5.2/libjava/Makefile.in	2010-12-29 23:02:41.000000000 +0100
+@@ -9463,6 +9463,9 @@
+ ecjx$(EXEEXT): $(ecjx_OBJECTS) $(ecjx_DEPENDENCIES) 
+ 	@rm -f ecjx$(EXEEXT)
+ 	$(ecjx_LINK) $(ecjx_OBJECTS) $(ecjx_LDADD) $(LIBS)
++ecjx.$(OBJEXT): $(ecjx_SOURCES)
++	@rm -f ecjx.$(OBJEXT)
++	$(CC_FOR_BUILD) $(BUILD_CFLAGS) -c -o $@ $<
+ gappletviewer$(EXEEXT): $(gappletviewer_OBJECTS) $(gappletviewer_DEPENDENCIES) 
+ 	@rm -f gappletviewer$(EXEEXT)
+ 	$(gappletviewer_LINK) $(gappletviewer_OBJECTS) $(gappletviewer_LDADD) $(LIBS)
diff --git a/patches/gcc/4.5.2/100-ecjx-host.patch b/patches/gcc/4.5.2/100-ecjx-host.patch
new file mode 100644
--- /dev/null
+++ b/patches/gcc/4.5.2/100-ecjx-host.patch
@@ -0,0 +1,13 @@
+diff -durN gcc-4.5.2.orig/libjava/Makefile.in gcc-4.5.2/libjava/Makefile.in
+--- gcc-4.5.2.orig/libjava/Makefile.in	2010-12-16 13:49:03.000000000 +0100
++++ gcc-4.5.2/libjava/Makefile.in	2010-12-29 23:02:41.000000000 +0100
+@@ -9463,6 +9463,9 @@
+ ecjx$(EXEEXT): $(ecjx_OBJECTS) $(ecjx_DEPENDENCIES) 
+ 	@rm -f ecjx$(EXEEXT)
+ 	$(ecjx_LINK) $(ecjx_OBJECTS) $(ecjx_LDADD) $(LIBS)
++ecjx.$(OBJEXT): $(ecjx_SOURCES)
++	@rm -f ecjx.$(OBJEXT)
++	$(CC_FOR_BUILD) $(BUILD_CFLAGS) -c -o $@ $<
+ gappletviewer$(EXEEXT): $(gappletviewer_OBJECTS) $(gappletviewer_DEPENDENCIES) 
+ 	@rm -f gappletviewer$(EXEEXT)
+ 	$(gappletviewer_LINK) $(gappletviewer_OBJECTS) $(gappletviewer_LDADD) $(LIBS)

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]