diff --git a/mupen64plus-core/CMakeLists.txt b/mupen64plus-core/CMakeLists.txt index cababdd..ef006d2 100644 --- a/mupen64plus-core/CMakeLists.txt +++ b/mupen64plus-core/CMakeLists.txt @@ -127,7 +127,7 @@ endif (UNIX) set_property(TARGET mupen64plus PROPERTY C_VISIBILITY_PRESET hidden) set_property(TARGET mupen64plus PROPERTY CXX_VISIBILITY_PRESET hidden) set_property(TARGET mupen64plus PROPERTY VISIBILITY_INLINES_HIDDEN ON) -target_compile_options(mupen64plus PRIVATE -march=x86-64-v3) -target_link_options(mupen64plus PRIVATE -march=x86-64-v3) +target_compile_options(mupen64plus PRIVATE -march=x86-64-v3 -fno-semantic-interposition) +target_link_options(mupen64plus PRIVATE -march=x86-64-v3 -fno-semantic-interposition -Wl,-Bsymbolic -Wl,-Bsymbolic-functions) target_link_directories(mupen64plus PRIVATE ${SDL_NET_LIBRARY_DIRS}) target_link_libraries(mupen64plus PRIVATE SDL2::SDL2 ${SDL_NET_LIBRARIES} ZLIB::ZLIB PNG::PNG)