Skip to content

Commit

Permalink
Statically link C++ standard library and libpthread on libretro Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
white-axe committed Jan 3, 2025
1 parent e581b58 commit caf0f7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit caf0f7e

Please sign in to comment.