Patchwork fix LIBUNWIND_LINK specification in libgcc.mvars

login
register
mail settings
Submitter Jan Beulich
Date June 10, 2010, 1:59 p.m.
Message ID <4C110BE60200007800005FB4@vpn.id2.novell.com>
Download mbox | patch
Permalink /patch/55222/
State New
Headers show

Comments

Jan Beulich - June 10, 2010, 1:59 p.m.
Just like for SHLIB_LINK, $(GCC_FOR_TARGET) should be protected from
being expanded to early - my cross builds for ia64 failed without this
change.

As this used to work with 4.4.x and earlier, I'm at once asking to also
apply this to the 4.5 branch.

gcc/
2010-06-10  Jan Beulich  <jbeulich@novell.com>

	* Makefile.in (libgcc.mvars): Retain GCC_FOR_TARGET for
	SHLIBUNWIND_LINK.

Patch

--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1866,7 +1866,7 @@  libgcc.mvars: config.status Makefile $(L
 	echo LIB2ADDEHSHARED = '$(call srcdirify,$(LIB2ADDEHSHARED) $(srcdir)/emutls.c)' >> tmp-libgcc.mvars
 	echo LIB2_SIDITI_CONV_FUNCS = '$(LIB2_SIDITI_CONV_FUNCS)' >> tmp-libgcc.mvars
 	echo LIBUNWIND = '$(call srcdirify,$(LIBUNWIND))' >> tmp-libgcc.mvars
-	echo SHLIBUNWIND_LINK = '$(SHLIBUNWIND_LINK)' >> tmp-libgcc.mvars
+	echo SHLIBUNWIND_LINK = '$(subst $(GCC_FOR_TARGET),$$(GCC_FOR_TARGET),$(SHLIBUNWIND_LINK))' >> tmp-libgcc.mvars
 	echo SHLIBUNWIND_INSTALL = '$(SHLIBUNWIND_INSTALL)' >> tmp-libgcc.mvars
 	echo FPBIT = '$(FPBIT)' >> tmp-libgcc.mvars
 	echo FPBIT_FUNCS = '$(FPBIT_FUNCS)' >> tmp-libgcc.mvars