From 2eefe4e7c0350ea121807b514e25edf19be3d873 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Thu, 3 Oct 2019 03:45:09 +0200 Subject: [PATCH] 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 --- python38.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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