Skip to content

Conversation

@hainest
Copy link
Contributor

@hainest hainest commented Dec 20, 2025

Detailed description

This allows the static library to be linked into a shared object or PIE executable without affecting non-PIC linking.

Test plan

None.


I think refactoring the set_property out of the CAPSTONE_BUILD_SHARED_LIBS would be a better change. Thoughts?

@Rot127
Copy link
Collaborator

Rot127 commented Dec 29, 2025

I think refactoring the set_property out of the CAPSTONE_BUILD_SHARED_LIBS would be a better change. Thoughts?

Yes. Also please add a line in https://github.com/capstone-engine/capstone/blob/next/docs/cs_v6_release_guide.md about this change.

This allows the static library to be linked into a shared object
or PIE executable.
@hainest
Copy link
Contributor Author

hainest commented Dec 29, 2025

Also please add a line in https://github.com/capstone-engine/capstone/blob/next/docs/cs_v6_release_guide.md about this change.

I wasn't sure where to add it, so I put it under 'Developer improvements' since that's where several other cmake/build items were.

@Rot127 Rot127 merged commit 5fd0e3e into capstone-engine:next Jan 3, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants