mirror of
https://gitlab.com/Syping/qt5-llvm-mingw-docker.git
synced 2024-11-22 13:50:22 +01:00
15 lines
414 B
Text
15 lines
414 B
Text
|
#!/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 "$@"
|
||
|
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
|