KEMBAR78
[3.12] gh-131865: Properly apply exported CFLAGS for dtrace/systemtap builds (GH-131866) by miss-islington · Pull Request #131951 · python/cpython · GitHub
Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Mar 31, 2025

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 0cd4bef)

Co-authored-by: stratakis cstratak@redhat.com

…builds (pythonGH-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 0cd4bef)

Co-authored-by: stratakis <cstratak@redhat.com>
@vstinner vstinner enabled auto-merge (squash) March 31, 2025 18:18
@vstinner vstinner merged commit b87ea7d into python:3.12 Mar 31, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants