-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
gh-128354: Use LIBS
consistently over LDFLAGS
in library build checks
#128359
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit a07b043 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
IMO, the safest thing to do is to consistently use |
I remember having issues with |
That sounds good to me, though I think it's an independent change from this one. I'm just referring to the ordering when extending flags, e.g., |
Yes, I agree. |
Yeah I think it is fine to backport the patch!! |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Well, it does not apply cleanly; I don't think it is worth the effort to manually backport this, but if someone wants to take it on, feel free to do so :) |
… build checks (pythonGH-128359) (cherry picked from commit b75ed95) Co-authored-by: Zanie Blue <[email protected]>
GH-128465 is a backport of this pull request to the 3.13 branch. |
… build checks (pythonGH-128359) (cherry picked from commit b75ed95) Co-authored-by: Zanie Blue <[email protected]>
GH-128466 is a backport of this pull request to the 3.12 branch. |
As noted in #128354, I audited all uses of
LIBS
andLDFLAGS
and adjusted checks using$<LIB>_LIBS
to setLIBS
instead ofLDFLAGS
and ensured we consistently ordered$LIBS
before$<LIB>_LIBS
. There are some other cases where a constant is added toLIBS
that I did not change here since it's a different pattern — we can consider those separately.I don't believe this needs a news entry, but defer to whatever the reviewer prefers.
I tested this locally on macOS and in a Linux container. It seems nice to get more test coverage too, perhaps via the build-bots?
In #95288, the ordering of
CFLAGS
andCPPFLAGS
was fixed in a similar manner. I also noticed that some of these uses were introduced in #94802.