]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-131865: Properly apply exported CFLAGS for dtrace/systemtap builds (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 31 Mar 2025 18:15:45 +0000 (20:15 +0200)
committerGitHub <noreply@github.com>
Mon, 31 Mar 2025 18:15:45 +0000 (20:15 +0200)
commit29b958a36b8c18a289701f77c922831fe0151d53
tree4871badf498c6b2fe6d1fb1572cfb17c42ae21a5
parentd52371c8cdafeb61df92e9cea6b02e3c4d052765
[3.13] gh-131865: Properly apply exported CFLAGS for dtrace/systemtap builds (GH-131866) (#131950)

gh-131865: Properly apply exported CFLAGS for dtrace/systemtap builds (GH-131866)

When using --with-dtrace the resulting object file could be missing
specific CFLAGS exported by the build system due to the systemtap
script using specific defaults.

Exporting the CC and CFLAGS variables before the dtrace invocation
allows us to properly apply CFLAGS exported by the build system
even when cross-compiling.

The fix does not affect the dtrace invocation on Solaris/macOS.
(cherry picked from commit 0cd4befb02df07c0b320cd6246227c13e57b2efb)

Co-authored-by: stratakis <cstratak@redhat.com>
Makefile.pre.in
Misc/NEWS.d/next/Build/2025-03-31-19-22-41.gh-issue-131865.PIJy7X.rst [new file with mode: 0644]