summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-05-01 22:45:55 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-05-01 22:45:55 +0000
commit67861b3726ac87e6c78cbb891a56a813c5748f8a (patch)
tree8a73fdb99d01bbe73962ebe271277b142d4d662d
parentc5006eede0719455d6bd6b159027a46132057bb1 (diff)
[scripts] ext-toolchain.sh: don't pass CFLAGS when wrapping ld
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31549 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 a34ef0677..d1e163fd6 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"