xbps-src: disable -Wl,--as-needed if $broken_as_needed is set.
This commit is contained in:
parent
50539bf0bb
commit
e6abf71b04
3 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue