Configure.bat -confirm-license -opensource -platform win32-g++ -mp
-debug-and-release -static -prefix "D:\softwareInstall\Qt\QtStaticLibraries" -qt-zlib -qt-libpng -qt-libjpeg -opengl
desktop -qt-freetype -no-qml-debug -no-angle -nomake tests -nomake examples
找到 QMAKE_LFLAGS 和 QMAKE_LFLAGS_DLL,
并修改为:(如有缺失,自行补全)
QMAKE_LFLAGS = -static
QMAKE_LFLAGS_DLL = -static
原文:https://www.cnblogs.com/-Newbie/p/12546347.html