From: Jo-Philipp Wich Date: Tue, 1 May 2012 22:45:55 +0000 (+0000) Subject: ext-toolchain.sh: don't pass CFLAGS when wrapping ld X-Git-Tag: reboot~14079 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=643babfc3ca64d0fbb505cebbc1c1d92c270de1b;p=openwrt%2Fstaging%2Fjogo.git 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"