mirror of
https://github.com/flyinghead/flycast.git
synced 2026-11-07 09:16:10 -10:00
libretro: avoid exporting symbols on linux, android and the bsds
Export only retro_* from the core, as the osx build does with libretro.osx.def. Symbols the core exports bind to same-named ones the frontend already loaded: RetroArch builds with their builtin glslang made the Vulkan renderer crash in GlslangToSpv on its first shader compile, and with a system glslang loaded (ffmpeg -> libplacebo -> shaderc) 33 glslang entry points, zstd, zlib and stb_image still went to those copies.
This commit is contained in:
1 parent
abfc411392
commit
34ad8c8262
2 files changed
+8
No files matched your search
@@ -206,6 +206,10 @@ elseif(LIBRETRO)
|
||||
if(NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
|
||||
endif()
|
||||
if(NOT WIN32)
|
||||
# keep bundled libs like glslang from binding to the frontend's copies
|
||||
target_link_options(${PROJECT_NAME} PRIVATE "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/shell/libretro/link.T")
|
||||
endif()
|
||||
endif()
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "flycast_libretro"
|
||||
XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "NO"
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
global: retro_*;
|
||||
local: *;
|
||||
};
|
||||
Reference in new issue
Block a user