Commit 42fe4864 authored by Allan McRae's avatar Allan McRae
Browse files

libmakepkg: add extra buildflags only when buildflags is not disabled

This means options=('!buildflags') will disable the addition of CFLAG
etc for LTO and debug building.
Signed-off-by: Allan McRae's avatarAllan McRae <>
parent a8d9fb8d
Pipeline #14418 passed with stage
in 4 minutes and 27 seconds
......@@ -29,7 +29,7 @@ source "$LIBRARY/util/"
buildenv_debugflags() {
if check_option "debug" "y"; then
if check_option "debug" "y" && ! check_option "buildflags" "n"; then
DEBUG_CFLAGS+=" -ffile-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
DEBUG_CXXFLAGS+=" -ffile-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
DEBUG_RUSTFLAGS+=" --remap-path-prefix=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
......@@ -30,7 +30,7 @@ build_options+=('lto')
buildenv_lto() {
if check_option "lto" "y"; then
if check_option "lto" "y" && ! check_option "buildflags" "n"; then
CFLAGS+=" -flto"
CXXFLAGS+=" -flto"
LDFLAGS+=" -flto"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment