ext-toolchain.sh: don't pass CFLAGS when wrapping ld

SVN-Revision: 31549
This commit is contained in:
Jo-Philipp Wich 2012-05-01 22:45:55 +00:00
parent 7a2b3d8a55
commit 643babfc3c

View file

@ -221,7 +221,7 @@ wrap_bin_ld() {
local bin="$2" local bin="$2"
echo '#!/bin/sh' > "$out" 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 -n '-L "$STAGING_DIR/usr/lib" ' >> "$out"
echo '-rpath-link "$STAGING_DIR/usr/lib"} "$@"' >> "$out" echo '-rpath-link "$STAGING_DIR/usr/lib"} "$@"' >> "$out"