binutils/binutils: ensure gold is staticaly-linked if needed

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 293d8334b913a86c3e5d817dd84e5bc434888251)
This commit is contained in:
Yann E. MORIN" 2011-10-09 15:34:16 +02:00
parent 1057a15040
commit 13b77146e7

View File

@ -79,9 +79,9 @@ do_binutils() {
"${CT_BINUTILS_EXTRA_CONFIG_ARRAY[@]}"
if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then
extra_make_flags+=("LDFLAGS=-all-static")
extra_make_flags+=("LDFLAGS=-static -all-static")
CT_DoLog EXTRA "Prepare binutils for static build"
CT_DoExecLog ALL make configure-host
CT_DoExecLog ALL make ${JOBSFLAGS} configure-host
fi
CT_DoLog EXTRA "Building binutils"