[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 a34ef06..d1e163f 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"