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

Allow static libs #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

hefroy
Copy link

@hefroy hefroy commented Sep 27, 2023

Remove SHARED option from add_library to allow static libs, CMake then respects the standard BUILD_SHARED_LIBS option. Set the default value of BUILD_SHARED_LIBS to ON.

Remove FactoryDeinit DEINITIALIZER, since it can be called after the runtime has been destroyed when statically linked, causing abort/segfault. Also as it is anyway not called via dlclose and CommonAPI::Runtime when dynamically linked.

@goncaloalmeida
Copy link
Contributor

we will check this change internally to see if this is causing any other problems
cc @fcmonteiro @DiogoPedrozza

Remove SHARED option from add_library to allow static libs,
CMake then respects the standard BUILD_SHARED_LIBS option.
Set the default value of BUILD_SHARED_LIBS to ON.

Remove FactoryDeinit DEINITIALIZER, since it can be called
after the runtime has been destroyed when statically linked,
causing abort/segfault. Also as it is anyway not called via
dlclose and CommonAPI::Runtime when dynamically linked.
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