patches/gcc/4.5.1/100-ecjx-host.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu May 26 22:51:03 2011 +0200 (2011-05-26)
changeset 2481 30644208c955
permissions -rw-r--r--
configure: add possibility to set arbitrary variable in check_for

If check_for is able to find the required prog/inc/lib, allow it to
set an arbitrary variable to 'y'. This variable is then pushed down
to the kconfig definition.

For example:
has_or_abort prog=foobar kconfig=has_foobar

If foobar is available, it yields a kconfig variable defaulting to y:
config CONFIGURE_has_foobar
bool
default y

If foobar is missing, it yields a kconfig variable defaulting to n:
config CONFIGURE_has_foobar
bool

Thus it is possible to depends on that variabel to show/hide options:
config SOME_FEATURE
bool
prompt "Some feature"
depends on CONFIGURE_has_foobar

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@2250
     1
diff -durN gcc-4.5.2.orig/libjava/Makefile.in gcc-4.5.2/libjava/Makefile.in
yann@2250
     2
--- gcc-4.5.2.orig/libjava/Makefile.in	2010-12-16 13:49:03.000000000 +0100
yann@2250
     3
+++ gcc-4.5.2/libjava/Makefile.in	2010-12-29 23:02:41.000000000 +0100
yann@2250
     4
@@ -9463,6 +9463,9 @@
yann@2250
     5
 ecjx$(EXEEXT): $(ecjx_OBJECTS) $(ecjx_DEPENDENCIES) 
yann@2250
     6
 	@rm -f ecjx$(EXEEXT)
yann@2250
     7
 	$(ecjx_LINK) $(ecjx_OBJECTS) $(ecjx_LDADD) $(LIBS)
yann@2250
     8
+ecjx.$(OBJEXT): $(ecjx_SOURCES)
yann@2250
     9
+	@rm -f ecjx.$(OBJEXT)
yann@2250
    10
+	$(CC_FOR_BUILD) $(BUILD_CFLAGS) -c -o $@ $<
yann@2250
    11
 gappletviewer$(EXEEXT): $(gappletviewer_OBJECTS) $(gappletviewer_DEPENDENCIES) 
yann@2250
    12
 	@rm -f gappletviewer$(EXEEXT)
yann@2250
    13
 	$(gappletviewer_LINK) $(gappletviewer_OBJECTS) $(gappletviewer_LDADD) $(LIBS)