diff options
author | Michael Hope <michael.hope@linaro.org> | 2011-10-05 14:15:45 +1300 |
---|---|---|
committer | Michael Hope <michael.hope@linaro.org> | 2011-10-05 14:15:45 +1300 |
commit | 1057a150401c3204fc69c0f4bc4f7dc0af17cfc1 (patch) | |
tree | 9213e9287a2627d772b5004ff94f36d8fa16579b | |
parent | 68c0a3bc7b7bec6b6cb25fc1d6e3e1678aa40e10 (diff) | |
download | crosstool-ng-1057a150401c3204fc69c0f4bc4f7dc0af17cfc1.tar.gz crosstool-ng-1057a150401c3204fc69c0f4bc4f7dc0af17cfc1.tar.bz2 crosstool-ng-1057a150401c3204fc69c0f4bc4f7dc0af17cfc1.zip |
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>
(transplanted from 9cd87d279a99bd32a364f12d4b2d6d37e1d9248b)
-rw-r--r-- | scripts/build/binutils/binutils.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index 8cb79059..ca67b825 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -64,6 +64,7 @@ do_binutils() { 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} \ |