xbps-src: fix a broken test for XBPS_LDFLAGS.
This commit is contained in:
parent
706d4369ad
commit
9cced17d22
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue