projects
/
openwrt
/
staging
/
wigyori.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ext-toolchain.sh: don't pass CFLAGS when wrapping ld
[openwrt/staging/wigyori.git]
/
scripts
/
ext-toolchain.sh
diff --git
a/scripts/ext-toolchain.sh
b/scripts/ext-toolchain.sh
index a34ef0677335cc9e5a3bd52e011444fff9754292..d1e163fd68973032ccd1e9b3e4e7ed95bdf0dbab 100755
(executable)
--- a/
scripts/ext-toolchain.sh
+++ b/
scripts/ext-toolchain.sh
@@
-221,7
+221,7
@@
wrap_bin_ld() {
local bin="$2"
echo '#!/bin/sh' > "$out"
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"
echo -n '-L "$STAGING_DIR/usr/lib" ' >> "$out"
echo '-rpath-link "$STAGING_DIR/usr/lib"} "$@"' >> "$out"