xbps-src: fix a broken test for XBPS_LDFLAGS.

This commit is contained in:
Juan RP 2011-07-04 10:29:00 +02:00
parent 706d4369ad
commit 9cced17d22
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ build_src_phase()
fi
# Disable -Wl,--as-needed if requested!
if [ -n "$broken_as_needed" -n "$XBPS_LDFLAGS" ]; then
if [ -n "$broken_as_needed" -a -n "$XBPS_LDFLAGS" ]; then
export XBPS_LDFLAGS="$(echo $XBPS_LDFLAGS|sed -e "s|-Wl,--as-needed||g")"
export LDFLAGS="$XBPS_LDFLAGS $LDFLAGS"
fi