libmakepkg: ensure clearing of buildflags happens first
When 'options=('!buildflags') is used, we want to ensure our buildflags are cleared first. Currently this happens due to luck of alphabetical ordering, but this could change with libmakepkg drop-ins. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
09e82f01ea
commit
e0bbfb5682
2 changed files with 3 additions and 1 deletions
|
@ -34,6 +34,9 @@ done
|
||||||
readonly -a buildenv_functions buildenv_vars build_options
|
readonly -a buildenv_functions buildenv_vars build_options
|
||||||
|
|
||||||
prepare_buildenv() {
|
prepare_buildenv() {
|
||||||
|
# ensure this function runs first
|
||||||
|
buildenv_buildflags
|
||||||
|
|
||||||
for func in ${buildenv_functions[@]}; do
|
for func in ${buildenv_functions[@]}; do
|
||||||
$func
|
$func
|
||||||
done
|
done
|
||||||
|
|
|
@ -26,7 +26,6 @@ LIBRARY=${LIBRARY:-'@libmakepkgdir@'}
|
||||||
source "$LIBRARY/util/option.sh"
|
source "$LIBRARY/util/option.sh"
|
||||||
|
|
||||||
build_options+=('buildflags')
|
build_options+=('buildflags')
|
||||||
buildenv_functions+=('buildenv_buildflags')
|
|
||||||
|
|
||||||
buildenv_buildflags() {
|
buildenv_buildflags() {
|
||||||
if check_option "buildflags" "n"; then
|
if check_option "buildflags" "n"; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue