From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16010 invoked by alias); 5 Oct 2011 01:21:50 -0000 Received: (qmail 16002 invoked by uid 22791); 5 Oct 2011 01:21:49 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from snapmx1.ironport.snap.net.nz (HELO snapmx1.ironport.snap.net.nz) (202.37.100.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 05 Oct 2011 01:21:23 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEACewi057/y/M/2dsb2JhbABCqBCCWj8/PBUfThO/JocjBJkOjDM Received: from rupert.snap.net.nz ([202.37.100.140]) by smtp1.ironport.snap.net.nz with ESMTP; 05 Oct 2011 14:21:21 +1300 X-Sender-IP: 123.255.47.204 X-Sender-IP: 123.255.47.204 Received: from [127.0.1.1] (204.47.255.123.static.snap.net.nz [123.255.47.204]) by rupert.snap.net.nz (Postfix) with ESMTPS id 2E87C255B9; Wed, 5 Oct 2011 14:21:21 +1300 (NZDT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH] Pass CXXFLAGS to binutils/gold X-Mercurial-Node: f051032a1070eda28557dd738c35446b44787217 Message-Id: User-Agent: Mercurial-patchbomb/1.4.3 Date: Wed, 05 Oct 2011 01:21:00 -0000 From: Michael Hope To: "Yann E. MORIN" Cc: crossgcc@sourceware.org X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00002.txt.bz2 # HG changeset patch # User Michael Hope # Date 1317777345 -46800 # Node ID f051032a1070eda28557dd738c35446b44787217 # Parent a56c84719b61620308d4a579991b98f936e7abf7 Pass CXXFLAGS to binutils/gold. The GOLD linker is written in C++. Pass CT_CFLAGS_FOR_HOST as CXXFLAGS to configure so that any host specific flags are passed through. It feels a bit funny passing CFLAGS as CXXFLAGS, but the PPL and GCC target rules already do the same. Signed-off-by: Michael Hope diff -r a56c84719b61 -r f051032a1070 scripts/build/binutils/binutils.sh --- a/scripts/build/binutils/binutils.sh Wed Oct 05 11:16:49 2011 +1300 +++ b/scripts/build/binutils/binutils.sh Wed Oct 05 14:15:45 2011 +1300 @@ -69,6 +69,7 @@ CT_DoExecLog CFG \ CFLAGS="${CT_CFLAGS_FOR_HOST}" \ + CXXFLAGS="${CT_CFLAGS_FOR_HOST}" \ "${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}/configure" \ --build=${CT_BUILD} \ --host=${CT_HOST} \ -- For unsubscribe information see http://sourceware.org/lists.html#faq