qt5-llvm-mingw-docker/qmake-static
2020-08-01 11:50:23 +02:00

14 lines
428 B
Bash
Executable file

#!/bin/bash
if [ "${QMAKE_FORCE_ALL_STATIC}" == "YES" ]; then
qmake "$@" LIBS+=-static
else
QMAKE_XSPEC=$(qmake -query QMAKE_XSPEC)
if [ "${QMAKE_XSPEC}" == "win32-clang-g++" ]; then
qmake "$@" LIBS+=-static
elif [ "${QMAKE_XSPEC}" == "win32-g++" ]; then
qmake "$@" LIBS+=-static-libgcc LIBS+=-static-libstdc++
else
qmake "$@" LIBS+=-static # Force all static because compiler unknown
fi
fi