Skip to content

Compile static and shared libraries - #326

Open
flagarde wants to merge 12 commits into
davea42:mainfrom
flagarde:main
Open

Compile static and shared libraries#326
flagarde wants to merge 12 commits into
davea42:mainfrom
flagarde:main

Conversation

@flagarde

@flagarde flagarde commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Thank you for this nice library.

One problem with the current compilation is that, depending on how dwarfgen is compiled, the shared library may be compiled with hidden visibility or without it. To fix this, the libraries are now always compiled as both shared and static libraries, and dwarfgen is linked against the static library. The shared library is therefore always compiled with hidden visibility.

Since we now compile both shared and static libraries, it is possible to install both. I also added an option to install only the shared library.

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