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

Enforce ordering of ldflags #231

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

peterebden
Copy link
Contributor

This is a nasty little one. We can get ldflags where order is important - e.g. {"path/to/something.a", "-lm"} where something.a needs libm; they have to be passed in that order. This ordering gets lost in their path to the final binary though; by that point they're alphabetised.

This isn't the nicest solution ever but it ensures the order remains the same.

@peterebden peterebden merged commit 27bfa0a into please-build:master Feb 12, 2024
4 checks passed
@peterebden peterebden deleted the order-ldflags branch February 12, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant