forked from teamnwah/openmw-tes3coop
[Server] Do not export all symbols
This commit is contained in:
parent
e766c6fb01
commit
30eaabb7ce
2 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ if (UNIX)
|
||||||
target_link_libraries(tes3mp-server dl)
|
target_link_libraries(tes3mp-server dl)
|
||||||
# Fix for not visible pthreads functions for linker with glibc 2.15
|
# Fix for not visible pthreads functions for linker with glibc 2.15
|
||||||
if(NOT APPLE)
|
if(NOT APPLE)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -rdynamic") # TODO: use -Wl,--dynamic-list=list.txt instead
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--exclude-libs,ALL -rdynamic -fvisibility=hidden")
|
||||||
target_link_libraries(tes3mp-server ${CMAKE_THREAD_LIBS_INIT})
|
target_link_libraries(tes3mp-server ${CMAKE_THREAD_LIBS_INIT})
|
||||||
endif(NOT APPLE)
|
endif(NOT APPLE)
|
||||||
endif(UNIX)
|
endif(UNIX)
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#define EXPORT_APIFUNCTION extern "C" __declspec(dllexport)
|
#define EXPORT_APIFUNCTION extern "C" __declspec(dllexport)
|
||||||
#define CDECL __cdecl
|
#define CDECL __cdecl
|
||||||
#else
|
#else
|
||||||
#define EXPORT_APIFUNCTION extern "C"
|
#define EXPORT_APIFUNCTION extern "C" __attribute__ ((visibility ("default")))
|
||||||
#define CDECL
|
#define CDECL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue