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

Add support for linker flags #90

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

amyspark
Copy link

Hi all,

This MR implements support for forwarding LDFLAGS from pkg-config modules. These are already detected in the pkg-config crate, but were not made available to system-deps consumers. In particular -Wl,-rpath,/a/b/c flags are essential to loading relocated libraries in Apple platforms.

For related issues, see:

cc @sdroege

@gdesmott
Copy link
Owner

Thanks for your patch Amy.

Looks ok to me assuming @sdroege agrees with this change as well.

It seems you'll have to update tests too.

These are already detected in the pkg-config crate, but were not made
available to system-deps consumers. In particular `-Wl,-rpath,/a/b/c`
flags are essential to loading relocated libraries in Apple platforms.
@amyspark
Copy link
Author

@gdesmott Just fixed the existing tests, and added one covering LDFLAGS. Thanks for the review!

@gdesmott gdesmott merged commit 3f3a3d0 into gdesmott:main Jun 17, 2024
6 checks passed
@gdesmott
Copy link
Owner

Merged and I just released 7.0.0 with your patch.

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.

2 participants