Skip to content
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

LDFLAGS and LIBS not used consistently in configure #128354

Open
zanieb opened this issue Dec 30, 2024 · 0 comments
Open

LDFLAGS and LIBS not used consistently in configure #128354

zanieb opened this issue Dec 30, 2024 · 0 comments
Labels
build The build process and cross-build type-bug An unexpected behavior, bug, or error

Comments

@zanieb
Copy link
Contributor

zanieb commented Dec 30, 2024

Bug report

Bug description:

Following up on #128322, I noticed that the same pattern of setting LDFLAGS instead of LIBS is used frequently. Additionally, there is not consistency in the ordering of the added libraries, e.g., LIBS="$LIBS ..." vs LIBS="... $LIBS".

For cases where the linking order matters, I believe using LDFLAGS is incorrect and the existing $LIBS should always come first.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

@zanieb zanieb added the type-bug An unexpected behavior, bug, or error label Dec 30, 2024
@erlend-aasland erlend-aasland added the build The build process and cross-build label Dec 30, 2024
zanieb added a commit to zanieb/cpython that referenced this issue Jan 4, 2025
… build checks (pythonGH-128359)

(cherry picked from commit b75ed95)

Co-authored-by: Zanie Blue <[email protected]>
zanieb added a commit to zanieb/cpython that referenced this issue Jan 4, 2025
… build checks (pythonGH-128359)

(cherry picked from commit b75ed95)

Co-authored-by: Zanie Blue <[email protected]>
WolframAlph pushed a commit to WolframAlph/cpython that referenced this issue Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants