makepkg: if "!buildflags" and "debug" coincide, unset the debug buildflags too
If a user has a makepkg.conf policy to enable debug builds, but a PKGBUILD has disabled buildflags, we would unset the *FLAGS but then later append the debug *FLAGS anyway, which would result in some *FLAGS being used, against the wishes of the PKGBUILD author. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
926eb345c2
commit
1aaf95089a
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ source_buildfile() {
|
|||
prepare_buildenv() {
|
||||
# clear user-specified buildflags if requested
|
||||
if check_option "buildflags" "n"; then
|
||||
unset CPPFLAGS CFLAGS CXXFLAGS LDFLAGS
|
||||
unset CPPFLAGS CFLAGS DEBUG_CFLAGS CXXFLAGS DEBUG_CXXFLAGS LDFLAGS
|
||||
fi
|
||||
|
||||
if check_option "debug" "y"; then
|
||||
|
|
Loading…
Add table
Reference in a new issue