[scripts] ext-toolchain.sh: don't pass CFLAGS when wrapping ld
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 1 May 2012 22:45:55 +0000 (22:45 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 1 May 2012 22:45:55 +0000 (22:45 +0000)
SVN-Revision: 31549

scripts/ext-toolchain.sh

index a34ef0677335cc9e5a3bd52e011444fff9754292..d1e163fd68973032ccd1e9b3e4e7ed95bdf0dbab 100755 (executable)
@@ -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"