You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CPython does not record and propagate linker flags to LDCXXSHARED in sysconfig #123297
CPython records and propagates several compilation-related flags from the time CPython is built, which in turn are used by distutils and setuptools to pass them to extension modules.
Unfortunately after pypa/distutils#228, distutils now introduced a new LDCXXSHARED, and are using that in preference to LDSHARED when linking C++ code. We do set LDCXXSHARED but we don't propagate LDFLAGS 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.
changed the title [-]CPython does not record and propagate LDCXXSHARED in sysconfig[/-][+]CPython does not record and propagate linker flags to LDCXXSHARED in sysconfig[/+]on Aug 24, 2024
Activity
[-]CPython does not record and propagate LDCXXSHARED in sysconfig[/-][+]CPython does not record and propagate linker flags to LDCXXSHARED in sysconfig[/+]pythongh-123297: Propagate LD_FLAGS to LDCXXSHARED in sysconfig
gh-123297: Propagate LD_FLAGS to LDCXXSHARED in sysconfig (#123298)
pythongh-123297: Propagate LD_FLAGS to LDCXXSHARED in sysconfig (pyth…
pythongh-123297: Propagate LD_FLAGS to LDCXXSHARED in sysconfig (pyth…
[3.12] gh-123297: Propagate LD_FLAGS to LDCXXSHARED in sysconfig (GH-…
[3.13] gh-123297: Propagate LD_FLAGS to LDCXXSHARED in sysconfig (GH-…