xbps-src: only process broken_as_needed in one place.
This commit is contained in:
@@ -78,12 +78,6 @@ build_src_phase()
|
||||
fi
|
||||
fi
|
||||
|
||||
# Disable -Wl,--as-needed if requested!
|
||||
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
|
||||
|
||||
if [ "$build_style" = "custom-install" ]; then
|
||||
run_func do_build
|
||||
else
|
||||
|
Reference in New Issue
Block a user