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

Support pkg-config --static flag in capstone.pc #2173

Conversation

michaeldleslie
Copy link
Contributor

Adds support for pkg-config's --static flag so that downstream users don't need to manually specify the path to libcapstone.a when statically linking.

Before change:

$ pkg-config --libs capstone
-lcapstone
$ pkg-config --libs capstone --static
-lcapstone

After change:

$ pkg-config --libs capstone
-lcapstone
$ pkg-config --libs capstone --static
-lcapstone -l:libcapstone.a

@kabeor
Copy link
Member

kabeor commented Oct 6, 2023

Cool, thanks! Merged.

@kabeor kabeor merged commit 5fb8a42 into capstone-engine:next Oct 6, 2023
11 checks passed
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