-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPython does not record and propagate linker flags to LDCXXSHARED in sysconfig #123297
Comments
pablogsal
changed the title
CPython does not record and propagate LDCXXSHARED in sysconfig
CPython does not record and propagate linker flags to LDCXXSHARED in sysconfig
Aug 24, 2024
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Aug 24, 2024
picnixz
added
build
The build process and cross-build
type-bug
An unexpected behavior, bug, or error
labels
Aug 24, 2024
pablogsal
added a commit
that referenced
this issue
Aug 25, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Aug 25, 2024
…onGH-123298) (cherry picked from commit c535a49) Co-authored-by: Pablo Galindo Salgado <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Aug 25, 2024
…onGH-123298) (cherry picked from commit c535a49) Co-authored-by: Pablo Galindo Salgado <[email protected]>
This was referenced Aug 25, 2024
pablogsal
added a commit
that referenced
this issue
Aug 25, 2024
pablogsal
added a commit
that referenced
this issue
Aug 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CPython records and propagates several compilation-related flags from the time CPython is built, which in turn are used by
distutils
andsetuptools
to pass them to extension modules.Unfortunately after pypa/distutils#228,
distutils
now introduced a newLDCXXSHARED
, and are using that in preference toLDSHARED
when linking C++ code. We do setLDCXXSHARED
but we don't propagateLDFLAGS
to that variable if the user has set in the environment.This is a problem because many distributions use the old variable
LDFLAGS
to propagate linker flags to extension modules (such as hardening and configuration flags) and now these are silently failing for C++ extension modules.Linked PRs
The text was updated successfully, but these errors were encountered: