xbps-src: really disable --as-needed if broken_as_needed is set.
Also remove some unnecessary stuff from gnu-configure build_style, because it's done elsewhere.
This commit is contained in:
parent
a31191f421
commit
5a2536f135
2 changed files with 4 additions and 10 deletions
|
@ -340,6 +340,10 @@ setup_pkg() {
|
|||
export CPPFLAGS="$XBPS_CPPFLAGS $XBPS_CROSS_CPPFLAGS $CPPFLAGS"
|
||||
export LDFLAGS="$XBPS_LDFLAGS $XBPS_CROSS_LDFLAGS $LDFLAGS"
|
||||
|
||||
if [ -n "$broken_as_needed" ]; then
|
||||
LDFLAGS="${LDFLAGS/-Wl,--as-needed/}"
|
||||
fi
|
||||
|
||||
export BUILD_CC="cc"
|
||||
export BUILD_CFLAGS="$XBPS_CFLAGS"
|
||||
export CC_FOR_BUILD="cc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue