qt5-llvm-mingw-docker/qmake-static

15 lines
428 B
Text
Raw Normal View History

2020-04-23 17:57:50 +02:00
#!/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
2020-04-30 23:20:45 +02:00
qmake "$@" LIBS+=-static
2020-04-23 17:57:50 +02:00
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