xbps-src: evaluate build_options before setting default flags
Fixes #9454
This commit is contained in:
parent
0adf7415b7
commit
75d5240c5b
|
@ -427,6 +427,8 @@ setup_pkg() {
|
|||
fi
|
||||
fi
|
||||
|
||||
set_build_options
|
||||
|
||||
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 FFLAGS="$XBPS_TARGET_FFLAGS $XBPS_FFLAGS $XBPS_CROSS_FFLAGS $FFLAGS"
|
||||
|
@ -531,8 +533,6 @@ setup_pkg() {
|
|||
unset CFLAGS_host CXXFLAGS_host CPPFLAGS_host LDFLAGS_host
|
||||
fi
|
||||
|
||||
set_build_options
|
||||
|
||||
# Setup some specific package vars.
|
||||
if [ -z "$wrksrc" ]; then
|
||||
wrksrc="$XBPS_BUILDDIR/${sourcepkg}-${version}"
|
||||
|
|
Loading…
Reference in New Issue