From 964f3db58e17e1e0bd0a2cb3b10e11d082466d0a Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Oct 16 2019 05:57:52 +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 538ef46..235ce05 100644 --- a/python3.spec +++ b/python3.spec @@ -721,7 +721,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