From patchwork Thu Nov 15 11:57:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [ping] Re: [patch v2] support for multiarch systems Date: Thu, 15 Nov 2012 01:57:51 -0000 From: Matthias Klose X-Patchwork-Id: 199261 Message-Id: <50A4D8BF.2030202@ubuntu.com> To: Eric Botcazou Cc: gcc-patches@gcc.gnu.org, "Joseph S. Myers" , Paolo Bonzini , Thomas Schwinge Am 15.11.2012 12:41, schrieb Eric Botcazou: >> re-attaching the updated patch with the fixed comment in genmultilib. > > This has introduced: > > make[3]: Leaving directory `/red.a/gnatmail/gcc-x/build-red/x86_64- > linux/gnat/obj/libdecnumber' > make[3]: Entering directory `/red.a/gnatmail/gcc-x/build-red/x86_64- > linux/gnat/obj/gcc' > Makefile:538: Extraneous text after `else' directive > Makefile:541: *** only one `else' per conditional. Stop. ahh, this is with GNU make 3.80. Checked in the following patch as obvious. Matthias 2012-11-15 Matthias Klose * Makefile.in (if_multiarch): Don't use a GNU make 3.81 feature. Index: Makefile.in =================================================================== --- Makefile.in (Revision 193528) +++ Makefile.in (Arbeitskopie) @@ -535,11 +535,13 @@ with_float = @with_float@ ifeq ($(enable_multiarch),yes) if_multiarch = $(1) -else ifeq ($(enable_multiarch),auto) - # SYSTEM_HEADER_DIR is makefile syntax, cannot be evaluated in configure.ac - if_multiarch = $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib/*/crti.o),$(1)) else - if_multiarch = + ifeq ($(enable_multiarch),auto) + # SYSTEM_HEADER_DIR is makefile syntax, cannot be evaluated in configure.ac + if_multiarch = $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib/*/crti.o),$(1)) + else + if_multiarch = + endif endif # ------------------------