fix static builds

This commit is contained in:
Syping 2020-04-30 23:20:45 +02:00
parent 141be7e882
commit 6dc5c78296

View file

@ -5,7 +5,7 @@ if [ "${QMAKE_FORCE_ALL_STATIC}" == "YES" ]; then
else else
QMAKE_XSPEC=$(qmake -query QMAKE_XSPEC) QMAKE_XSPEC=$(qmake -query QMAKE_XSPEC)
if [ "${QMAKE_XSPEC}" == "win32-clang-g++" ]; then if [ "${QMAKE_XSPEC}" == "win32-clang-g++" ]; then
qmake "$@" qmake "$@" LIBS+=-static
elif [ "${QMAKE_XSPEC}" == "win32-g++" ]; then elif [ "${QMAKE_XSPEC}" == "win32-g++" ]; then
qmake "$@" LIBS+=-static-libgcc LIBS+=-static-libstdc++ qmake "$@" LIBS+=-static-libgcc LIBS+=-static-libstdc++
else else