From 9cced17d221c71f3a3ec2f0db125f9add872ae69 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 4 Jul 2011 10:29:00 +0200 Subject: [PATCH] xbps-src: fix a broken test for XBPS_LDFLAGS. --- xbps-src/shutils/build_funcs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbps-src/shutils/build_funcs.sh b/xbps-src/shutils/build_funcs.sh index a049e67bb6f..350f4418149 100644 --- a/xbps-src/shutils/build_funcs.sh +++ b/xbps-src/shutils/build_funcs.sh @@ -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