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
This commit is contained in:
parent
2eefe4e7c0
commit
0c70c9d269
@ -683,14 +683,15 @@ BuildPython() {
|
||||
$ExtraConfigArgs \
|
||||
%{nil}
|
||||
|
||||
%global flags_override EXTRA_CFLAGS="$MoreCFlags" CFLAGS_NODIST="$CFLAGS_NODIST $MoreCFlags"
|
||||
|
||||
%if %{without bootstrap}
|
||||
# Regenerate generated files (needs python3)
|
||||
%make_build regen-all PYTHON_FOR_REGEN="python%{pybasever}"
|
||||
%make_build %{flags_override} regen-all PYTHON_FOR_REGEN="python%{pybasever}"
|
||||
%endif
|
||||
|
||||
|
||||
# Invoke the build
|
||||
%make_build CFLAGS_NODIST="$CFLAGS_NODIST $MoreCFlags"
|
||||
%make_build %{flags_override}
|
||||
|
||||
popd
|
||||
echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfName
|
||||
|
Loading…
Reference in New Issue
Block a user