build: Windows statically link gcc and c++ runtime

This commit is contained in:
xiphon 2019-05-22 10:54:05 +00:00
parent c286c7e5a8
commit fbd6d683ed

View File

@ -255,6 +255,8 @@ win32 {
LIBS+=-L$$BOOST_PATH/lib LIBS+=-L$$BOOST_PATH/lib
LIBS+=-L$$BOOST_MINGW_PATH/lib LIBS+=-L$$BOOST_MINGW_PATH/lib
QMAKE_LFLAGS += -static-libgcc -static-libstdc++
LIBS+= \ LIBS+= \
-Wl,-Bstatic \ -Wl,-Bstatic \
-lboost_serialization-mt \ -lboost_serialization-mt \
@ -272,6 +274,7 @@ win32 {
-licudt \ -licudt \
-licutu \ -licutu \
-liconv \ -liconv \
-lpthread \
-lssl \ -lssl \
-lsodium \ -lsodium \
-lcrypto \ -lcrypto \