automatic dependencies
Tom Tromey
tromey@redhat.com
Mon Sep 30 14:07:00 GMT 2013
Eric> Are there any additional prerequisites on the GNU make version?
Eric> On a machine with GNU make 3.80 installed, the bootstrap
Eric> consistently fails with:
Sorry about this.
Eric> $(and $(SHLIB),$(filter yes,yes),-DENABLE_SHARED_LIBGCC) \
I looked in the GNU make NEWS file and found that $(and ..) was added in
3.81.
In this particular case it looked easy to reimplement using $(if).
Could you please try this patch with make 3.80?
thanks,
Tom
2013-09-30 Tom Tromey <tromey@redhat.com>
* Makefile.in (-DTOOLDIR_BASE_PREFIX): Use $(if), not $(and).
Index: Makefile.in
===================================================================
--- Makefile.in (revision 202912)
+++ Makefile.in (working copy)
@@ -1924,7 +1924,7 @@
-DTOOLDIR_BASE_PREFIX=\"$(libsubdir_to_prefix)$(prefix_to_exec_prefix)\" \
@TARGET_SYSTEM_ROOT_DEFINE@ \
$(VALGRIND_DRIVER_DEFINES) \
- $(and $(SHLIB),$(filter yes,@enable_shared@),-DENABLE_SHARED_LIBGCC) \
+ $(if $(SHLIB),$(if $(filter yes,@enable_shared@),-DENABLE_SHARED_LIBGCC)) \
-DCONFIGURE_SPECS="\"@CONFIGURE_SPECS@\""
CFLAGS-gcc.o += $(DRIVER_DEFINES)
More information about the Gcc
mailing list