diff options
author | goodmenlinux@gmail.com <goodmenlinux@gmail.com> | 2014-07-11 09:14:36 +0800 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2014-12-05 03:20:04 -0800 |
commit | f65ecce4baf15f9f43c2642743eada326eba63d2 (patch) | |
tree | 9504e0a4bc91a1d9369da7e04f5ab5cedb516d96 /scripts/build/binutils/binutils.sh | |
parent | 10e157979915655d7030797bc09add644957aadb (diff) | |
download | crosstool-ng-f65ecce4baf15f9f43c2642743eada326eba63d2.tar.gz crosstool-ng-f65ecce4baf15f9f43c2642743eada326eba63d2.tar.bz2 crosstool-ng-f65ecce4baf15f9f43c2642743eada326eba63d2.zip |
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>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'scripts/build/binutils/binutils.sh')
-rw-r--r-- | scripts/build/binutils/binutils.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index b6207bef..a0d9208d 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -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 |