From c96896b851d5a4850af12906ec9058f2d7c9f31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 1 Aug 2024 14:47:25 +0200 Subject: [PATCH] Ensure 3rd party extension modules for the debug build use the -O0 flag Resolves: RHEL-49637 --- python3.9.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python3.9.spec b/python3.9.spec index 31436a4..4dbcf6e 100644 --- a/python3.9.spec +++ b/python3.9.spec @@ -17,7 +17,7 @@ URL: https://www.python.org/ #global prerel ... %global upstream_version %{general_version}%{?prerel} Version: %{general_version}%{?prerel:~%{prerel}} -Release: 5%{?dist} +Release: 6%{?dist} License: Python @@ -949,7 +949,7 @@ BuildPython() { $ExtraConfigArgs \ %{nil} -%global flags_override EXTRA_CFLAGS="$MoreCFlags" CFLAGS_NODIST="$CFLAGS_NODIST $MoreCFlagsNodist" +%global flags_override EXTRA_CFLAGS="$MoreCFlags" CFLAGS_NODIST="$CFLAGS_NODIST $MoreCFlags $MoreCFlagsNodist" %if %{without bootstrap} # Regenerate generated files (needs python3) @@ -1853,6 +1853,9 @@ CheckPython optimized # ====================================================== %changelog +* Thu Aug 01 2024 Miro HronĨok - 3.9.19-6 +- Ensure 3rd party extension modules for the debug build use the -O0 flag + * Thu Jul 25 2024 Charalampos Stratakis - 3.9.19-5 - Properly propagate the optimization flags to C extensions