mirror of
https://github.com/ziglang/zig.git
synced 2025-01-19 08:22:43 +00:00
fixed static linking on mingw-w64
This commit is contained in:
parent
9c39d5720f
commit
1547692d18
@ -8782,6 +8782,8 @@ endif()
|
||||
if(ZIG_STATIC)
|
||||
if(APPLE)
|
||||
set(EXE_LDFLAGS "-static-libgcc -static-libstdc++")
|
||||
elseif(MINGW)
|
||||
set(EXE_LDFLAGS "-static-libgcc -static-libstdc++ -Wl,-Bstatic,--whole-archive -lwinpthread -lz3 -lz -lgomp -Wl,--no-whole-archive")
|
||||
else()
|
||||
set(EXE_LDFLAGS "-static")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user