Merge pull request #299 from bhundven/fix_static_binutils

binutils: Fix LDFLAGS for static toolchain
This commit is contained in:
Bryan Hundven 2015-12-07 11:26:49 -08:00
commit 8a87716fbf

View File

@ -235,7 +235,7 @@ do_binutils_backend() {
"${CT_BINUTILS_EXTRA_CONFIG_ARRAY[@]}"
if [ "${static_build}" = "y" ]; then
extra_make_flags+=("LDFLAGS=-all-static")
extra_make_flags+=("LDFLAGS=${ldflags} -all-static")
CT_DoLog EXTRA "Prepare binutils for static build"
CT_DoExecLog ALL ${make} ${JOBSFLAGS} configure-host
fi