From b50df316ed1804a77e33629ce9319ef5f21cbbb9 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Oct 16 2019 05:51:50 +0000 Subject: Pass -Og to EXTRA_CFLAGS as well as to CFLAGS_NODIST - to CFLAGS_NODIST to take precedence as CFLAGS_NODIST go after EXTRA_CFLAGS - to EXTRA_CFLAGS to "bake it in" and build extension modules with -Og - call make regen-all with the same flags, as it invokes gcc as well --- diff --git a/python3.spec b/python3.spec index 99311d6..dbce67c 100644 --- a/python3.spec +++ b/python3.spec @@ -719,8 +719,10 @@ BuildPython() { $ExtraConfigArgs \ %{nil} +%global flags_override EXTRA_CFLAGS="$MoreCFlags" CFLAGS_NODIST="$CFLAGS_NODIST $MoreCFlags" + # Invoke the build - %make_build CFLAGS_NODIST="$CFLAGS_NODIST $MoreCFlags" + %make_build %{flags_override} popd echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfName