xbps-src: tweak the order of LDFLAGS set in templates.
Rather than appending to the final LDFLAGS, add it to the head, this way packages that use LDFLAGS="-lfoo" will still work with --as-needed. This fixes hsetroot build, at least.
This commit is contained in:
parent
a38c33a99a
commit
388c3143ac
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ setup_pkg() {
|
||||||
export CFLAGS="$XBPS_TARGET_CFLAGS $XBPS_CFLAGS $XBPS_CROSS_CFLAGS $CFLAGS $dbgflags"
|
export CFLAGS="$XBPS_TARGET_CFLAGS $XBPS_CFLAGS $XBPS_CROSS_CFLAGS $CFLAGS $dbgflags"
|
||||||
export CXXFLAGS="$XBPS_TARGET_CXXFLAGS $XBPS_CXXFLAGS $XBPS_CROSS_CXXFLAGS $CXXFLAGS $dbgflags"
|
export CXXFLAGS="$XBPS_TARGET_CXXFLAGS $XBPS_CXXFLAGS $XBPS_CROSS_CXXFLAGS $CXXFLAGS $dbgflags"
|
||||||
export CPPFLAGS="$XBPS_TARGET_CPPFLAGS $XBPS_CPPFLAGS $XBPS_CROSS_CPPFLAGS $CPPFLAGS"
|
export CPPFLAGS="$XBPS_TARGET_CPPFLAGS $XBPS_CPPFLAGS $XBPS_CROSS_CPPFLAGS $CPPFLAGS"
|
||||||
export LDFLAGS="$XBPS_TARGET_LDFLAGS $XBPS_LDFLAGS $XBPS_CROSS_LDFLAGS $LDFLAGS"
|
export LDFLAGS="$LDFLAGS $XBPS_TARGET_LDFLAGS $XBPS_LDFLAGS $XBPS_CROSS_LDFLAGS"
|
||||||
|
|
||||||
if [ -n "$broken_as_needed" ]; then
|
if [ -n "$broken_as_needed" ]; then
|
||||||
LDFLAGS="${LDFLAGS/-Wl,--as-needed/}"
|
LDFLAGS="${LDFLAGS/-Wl,--as-needed/}"
|
||||||
|
|
Loading…
Reference in a new issue