avoid passing -static to msvc when static linking

master
emekoi 2019-07-27 17:54:20 -05:00
parent 10b1017702
commit 357fb4f143
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ if(ZIG_STATIC)
set(EXE_LDFLAGS "${EXE_LDFLAGS} -static-libgcc -static-libstdc++")
elseif(MINGW)
set(EXE_LDFLAGS "${EXE_LDFLAGS} -static-libgcc -static-libstdc++ -Wl,-Bstatic, -lwinpthread -lz3 -lz -lgomp")
else()
elseif(NOT MSVC)
set(EXE_LDFLAGS "${EXE_LDFLAGS} -static")
endif()
else()