fixed static linking on mingw-w64

master
emekoi 2019-07-13 17:44:05 -05:00 committed by Andrew Kelley
parent 9c39d5720f
commit 1547692d18
1 changed files with 2 additions and 0 deletions

View File

@ -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()