From 2eefe4e7c0350ea121807b514e25edf19be3d873 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Oct 14 2019 20:53:22 +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/python38.spec b/python38.spec index eb8f133..0fa642f 100644 --- a/python38.spec +++ b/python38.spec @@ -690,7 +690,7 @@ BuildPython() { # Invoke the build - %make_build EXTRA_CFLAGS="$CFLAGS $MoreCFlags" + %make_build CFLAGS_NODIST="$CFLAGS_NODIST $MoreCFlags" popd echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfName