summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-05-01 22:45:55 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-05-01 22:45:55 +0000
commit643babfc3ca64d0fbb505cebbc1c1d92c270de1b (patch)
tree8285fa96c55b166a8615b600853c9c881c1d689d /scripts
parent7a2b3d8a55867f55293eaccc81efff9bdb197cc1 (diff)
downloadmtk-20170518-643babfc3ca64d0fbb505cebbc1c1d92c270de1b.zip
mtk-20170518-643babfc3ca64d0fbb505cebbc1c1d92c270de1b.tar.gz
mtk-20170518-643babfc3ca64d0fbb505cebbc1c1d92c270de1b.tar.bz2
ext-toolchain.sh: don't pass CFLAGS when wrapping ld
SVN-Revision: 31549
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ext-toolchain.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh
index a34ef06..d1e163f 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"