Skip to content

Commit

Permalink
isolate boost (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdodzweit authored May 25, 2023
1 parent 819ca58 commit b0dc412
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ target_include_directories(${VSOMEIP_NAME} INTERFACE
# the build.
target_link_libraries(${VSOMEIP_NAME} PRIVATE ${Boost_LIBRARIES} ${USE_RT} ${DL_LIBRARY} ${DLT_LIBRARIES} ${SystemD_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})

if(NOT WIN32)
target_link_options(${VSOMEIP_NAME} PRIVATE "LINKER:-as-needed")
endif()

################################################################################
# Service Discovery library
################################################################################
Expand Down
2 changes: 1 addition & 1 deletion implementation/plugin/src/plugin_manager_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void * plugin_manager_impl::load_library(const std::string &_path) {
#ifdef _WIN32
return LoadLibrary(_path.c_str());
#else
return dlopen(_path.c_str(), RTLD_LAZY | RTLD_GLOBAL);
return dlopen(_path.c_str(), RTLD_LAZY | RTLD_LOCAL);
#endif
}

Expand Down

0 comments on commit b0dc412

Please sign in to comment.