Skip to content
Snippets Groups Projects
Commit 02ac8c5d authored by Matteo Cicuttin's avatar Matteo Cicuttin
Browse files

Linker script to hide eigen and sol.

parent 3326b415
No related branches found
No related tags found
No related merge requests found
...@@ -34,3 +34,9 @@ else() ...@@ -34,3 +34,9 @@ else()
add_library(gmshdg SHARED ${LIBGMSHDG_SOURCES}) add_library(gmshdg SHARED ${LIBGMSHDG_SOURCES})
target_link_libraries(gmshdg ${LINK_LIBS}) target_link_libraries(gmshdg ${LINK_LIBS})
endif() endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set_property(TARGET gmshdg APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libgmshdg.lkr")
set_target_properties(gmshdg PROPERTIES LINK_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/libgmshdg.lkr")
endif()
{
global: *;
local:
extern "C++"
{
Eigen::*;
*Eigen::internal::*;
sol::*;
};
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment