From ba038d4ef1a4c0691a7cc695d1a48c1593417662 Mon Sep 17 00:00:00 2001
From: Brock Zheng <goodmenlinux@gmail.com>
Date: Fri, 11 Jul 2014 09:04:08 +0800
Subject: [PATCH] binutils: Fixup the static toolchain build problem
When try to build the static toolchain, binutils failed.
I have checked the libtool script, and found that the following option
-all-static
-static
-static-libtool-libs
are processed in a strange way. If any one of those three options
appears firstly in the cmdline, all others will be neglected. Our
LDFLAGS is ".... -static -all-static -o", so the -static option
takes the real effect, and the -all-static has no useage actually!
that is the cause of the failure.
Signed-off-by: Brock Zheng <goodmenlinux@gmail.com>
---
scripts/build/binutils/binutils.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -220,7 +220,7 @@ do_binutils_backend() {
"${CT_BINUTILS_EXTRA_CONFIG_ARRAY[@]}"
if [ "${static_build}" = "y" ]; then
- extra_make_flags+=("LDFLAGS=-static -all-static")
+ extra_make_flags+=("LDFLAGS=-all-static")
CT_DoLog EXTRA "Prepare binutils for static build"
CT_DoExecLog ALL make ${JOBSFLAGS} configure-host
fi
--
2.0.1