public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Doug Kwan (關振德)" <dougkwan@google.com>
To: binutils <binutils@sourceware.org>
Cc: "Beare, Bruce J" <bruce.j.beare@intel.com>
Subject: [PATCH] allow setting LDFLAGS_FOR_TARGET in top-level configuration.
Date: Mon, 09 May 2011 08:14:00 -0000	[thread overview]
Message-ID: <BANLkTikEKv5=99d3N_WE5ow+ZfDtQaTxCQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 499 bytes --]

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.

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 973 bytes --]

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@

             reply	other threads:[~2011-05-09  8:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-09  8:14 Doug Kwan (關振德) [this message]
2011-05-09 17:15 ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTikEKv5=99d3N_WE5ow+ZfDtQaTxCQ@mail.gmail.com' \
    --to=dougkwan@google.com \
    --cc=binutils@sourceware.org \
    --cc=bruce.j.beare@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).