Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CPython does not record and propagate linker flags to LDCXXSHARED in sysconfig #123297

Closed
Labels
buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error
@pablogsal

Description

@pablogsal

CPython records and propagates several compilation-related flags from the time CPython is built, which in turn are used bydistutils andsetuptools to pass them to extension modules.

Unfortunately afterpypa/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 variableLDFLAGS 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp