Statically link C++ standard library and libpthread on libretro Windows

This commit is contained in:
刘皓 2025-01-03 00:04:21 -05:00
parent e581b58305
commit caf0f7ef32
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -117,6 +117,9 @@ if get_option('retro') == true
'-Wno-ignored-optimization-argument',
] + retro_defines,
cpp_args: retro_defines,
link_args: [
host_system == 'cygwin' or host_system == 'windows' ? '-static' : '', # We need to statically link the C++ standard library (libstdc++/libc++), the compiler runtime library (libgcc/compiler-rt) and libpthread on Windows
],
gnu_symbol_visibility: 'hidden',
include_directories: [
include_directories(retro_phase1),