COVESA / capicxx-someip-runtime

Common API C++ SOMEIP runtime
Mozilla Public License 2.0
111 stars 81 forks source link

Allow static libs #27

Open hefroy opened 1 year ago

hefroy commented 1 year ago

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 commented 1 year ago

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