mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-05 13:43:04 +02:00
Merge pull request #52 from Splendide-Imaginarius/mkxp-z-static-libgcc-windows
Build with static libgcc on Windows
This commit is contained in:
commit
986875a144
1 changed files with 2 additions and 1 deletions
|
@ -60,7 +60,8 @@ if host_system == 'windows'
|
||||||
endif
|
endif
|
||||||
if build_static == true
|
if build_static == true
|
||||||
if host_system == 'windows'
|
if host_system == 'windows'
|
||||||
global_link_args += ['-Wl,-Bstatic', '-lgcc', '-lstdc++', '-lpthread', '-Wl,-Bdynamic']
|
# '-static-libgcc', '-static-libstdc++' are here to avoid needing to ship a separate libgcc_s_seh-1.dll on Windows; it still works without those flags if you have the dll.
|
||||||
|
global_link_args += ['-static-libgcc', '-static-libstdc++', '-Wl,-Bstatic', '-lgcc', '-lstdc++', '-lpthread', '-Wl,-Bdynamic']
|
||||||
else
|
else
|
||||||
global_link_args += ['-static-libgcc', '-static-libstdc++']
|
global_link_args += ['-static-libgcc', '-static-libstdc++']
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue