patches/gcc/4.4.4/340-ecjx-host-cc.patch
author David Holsgrove <david.holsgrove@xilinx.com>
Wed Oct 03 15:59:22 2012 +1000 (2012-10-03)
changeset 3071 5243d1b432b1
parent 1948 d341be24dc68
permissions -rw-r--r--
scripts/gdb: If not building expat for gdb, disable

--with-expat=yes is unconditionally passed to the gdb configure
stage, instead of respecting the ${do_expat} decision.

Disable if not needed. Prevents error building canadian cross;

configure: error: expat is missing or unusable

Where configure stage fails to find expat on the host compiler.

Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Message-Id: <4c4410a2a8aab24a29c5.1349244128@localhost.localdomain>
PatchWork-Id: 188711
yann@1948
     1
diff -durN gcc-4.4.4.orig/libjava/Makefile.in gcc-4.4.4/libjava/Makefile.in
yann@1948
     2
--- gcc-4.4.4.orig/libjava/Makefile.in	2010-04-29 10:26:54.000000000 +0200
yann@1948
     3
+++ gcc-4.4.4/libjava/Makefile.in	2010-05-16 19:37:38.000000000 +0200
yann@1948
     4
@@ -9270,6 +9270,9 @@
yann@1948
     5
 ecjx$(EXEEXT): $(ecjx_OBJECTS) $(ecjx_DEPENDENCIES) 
yann@1948
     6
 	@rm -f ecjx$(EXEEXT)
yann@1948
     7
 	$(ecjx_LINK) $(ecjx_LDFLAGS) $(ecjx_OBJECTS) $(ecjx_LDADD) $(LIBS)
yann@1948
     8
+ecjx.$(OBJEXT): $(ecjx_SOURCES)
yann@1948
     9
+	@rm -f ecjx.$(OBJEXT)
yann@1948
    10
+	$(CC_FOR_BUILD) $(BUILD_CFLAGS) -c -o $@ $<
yann@1948
    11
 gappletviewer$(EXEEXT): $(gappletviewer_OBJECTS) $(gappletviewer_DEPENDENCIES) 
yann@1948
    12
 	@rm -f gappletviewer$(EXEEXT)
yann@1948
    13
 	$(gappletviewer_LINK) $(gappletviewer_LDFLAGS) $(gappletviewer_OBJECTS) $(gappletviewer_LDADD) $(LIBS)