mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 18:56:31 +00:00
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>
This commit is contained in:
parent
ab0ef7042f
commit
279ab9f481
13
patches/gcc/4.5.0/100-ecjx-host.patch
Normal file
13
patches/gcc/4.5.0/100-ecjx-host.patch
Normal file
@ -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)
|
13
patches/gcc/4.5.1/100-ecjx-host.patch
Normal file
13
patches/gcc/4.5.1/100-ecjx-host.patch
Normal file
@ -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)
|
13
patches/gcc/4.5.2/100-ecjx-host.patch
Normal file
13
patches/gcc/4.5.2/100-ecjx-host.patch
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user