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 amyspark force-pushed the add-ldflags-support branch from 927b089 to 8c8298b Compare June 14, 2024 22:06
@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