From: Jo-Philipp Wich Date: Tue, 1 May 2012 22:45:55 +0000 (+0000) Subject: [scripts] ext-toolchain.sh: don't pass CFLAGS when wrapping ld X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a8a53591fed92d123c14e479ee9ffb1c6acfb6f0;p=openwrt%2Fsvn-archive%2Farchive.git [scripts] ext-toolchain.sh: don't pass CFLAGS when wrapping ld SVN-Revision: 31549 --- diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh index a34ef06773..d1e163fd68 100755 --- a/scripts/ext-toolchain.sh +++ b/scripts/ext-toolchain.sh @@ -221,7 +221,7 @@ wrap_bin_ld() { local bin="$2" echo '#!/bin/sh' > "$out" - echo -n 'exec "'"$bin"'" '"$CFLAGS"' ${STAGING_DIR:+' >> "$out" + echo -n 'exec "'"$bin"'" ${STAGING_DIR:+' >> "$out" echo -n '-L "$STAGING_DIR/usr/lib" ' >> "$out" echo '-rpath-link "$STAGING_DIR/usr/lib"} "$@"' >> "$out"