[PATCH] allow setting LDFLAGS_FOR_TARGET in top-level configuration.

Doug Kwan (關振德) dougkwan@google.com
Mon May 9 08:14:00 GMT 2011


This is a merge from gcc rev 173558.  The x86 android toolchain needs
this to build.  Okay to check in?

-Doug

2011-05-08  Doug Kwan  <dougkwan@google.com>

        Merge from gcc:

        2011-05-08  Doug Kwan  <dougkwan@google.com>

                * configure.ac: Propagate LDFLAGS_FOR_TARGET.
                * configure: Regenerated.
                * Makefile.tpl (LDFLAGS_FOR_TARGET): Use LDFLAGS_FOR_TARGET
                value from configure.
                * Makefile.in: Regenerated.
-------------- next part --------------
Index: configure.ac
===================================================================
--- configure.ac	(revision 173552)
+++ configure.ac	(working copy)
@@ -2110,6 +2110,8 @@ if test "x$CXXFLAGS_FOR_TARGET" = x; then
 fi
 AC_SUBST(CXXFLAGS_FOR_TARGET)
 
+AC_SUBST(LDFLAGS_FOR_TARGET)
+
 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
 # the named directory are copied to $(tooldir)/sys-include.
 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
Index: Makefile.tpl
===================================================================
--- Makefile.tpl	(revision 173552)
+++ Makefile.tpl	(working copy)
@@ -494,7 +494,7 @@ CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
 
 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
-LDFLAGS_FOR_TARGET = 
+LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
 GOCFLAGS_FOR_TARGET = -O2 -g
 
 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@


More information about the Binutils mailing list