fixed static linking on mingw-w64
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