xbps-src: disable -Wl,--as-needed if $broken_as_needed is set.

This commit is contained in:
Juan RP 2011-01-10 12:02:08 +01:00
parent 50539bf0bb
commit e6abf71b04
3 changed files with 10 additions and 1 deletions

View file

@ -85,6 +85,11 @@ build_src_phase()
fi
fi
# Disable -Wl,--as-needed if requested!
if [ -n "$broken_as_needed" ]; then
export XBPS_LDFLAGS="$(echo $XBPS_LDFLAGS|sed -e "s|-Wl,--as-needed||g")"
fi
if [ "$build_style" = "custom-install" ]; then
[ -n "$XBPS_LDFLAGS" ] && export LDFLAGS="$XBPS_LDFLAGS"
run_func do_build