From a1cf5e98998f887766bc3c64e243abccd2bcadb8 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Oct 16 2019 05:55:49 +0000 Subject: Make the debug build compile with -Og Due to Python's handling of CFLAGS and the way we were passing extra compiler flags through the SPEC the -Og flag for the debug build was overridden by the -O2 flag, resulting in various side effects. See: https://bugs.python.org/issue37631 Resolves: rhbz#1678277 --- diff --git a/python3.spec b/python3.spec index 15494ac..09f593f 100644 --- a/python3.spec +++ b/python3.spec @@ -668,7 +668,7 @@ BuildPython() { %{nil} # Invoke the build - make EXTRA_CFLAGS="$CFLAGS $MoreCFlags" %{?_smp_mflags} + %make_build CFLAGS_NODIST="$CFLAGS_NODIST $MoreCFlags" popd echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfName