public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Pass CXXFLAGS to binutils/gold
@ 2011-10-05  1:21 Michael Hope
  2011-10-05  2:15 ` Mike Frysinger
  2011-10-05 21:58 ` Yann E. MORIN
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Hope @ 2011-10-05  1:21 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

# HG changeset patch
# User Michael Hope <michael.hope@linaro.org>
# 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 <michael.hope@linaro.org>

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-06  3:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-05  1:21 [PATCH] Pass CXXFLAGS to binutils/gold Michael Hope
2011-10-05  2:15 ` Mike Frysinger
2011-10-05 21:31   ` Michael Hope
2011-10-05 21:45     ` Yann E. MORIN
2011-10-06  3:07       ` Michael Hope
2011-10-05 21:58 ` Yann E. MORIN

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).