Newer versions of MinGW-w64 introduce a dependency on it for threads support, which is removed by passing the -static flag to the linker and fixes #1723
@@ -42,7 +42,7 @@ INCLUDEPATH += ../../include
RESOURCES = $$PWD/wkhtmltopdf.qrc
win32: CONFIG += console
-win32-g++*: QMAKE_LFLAGS += -static-libgcc -static-libstdc++
+win32-g++*: QMAKE_LFLAGS += -static -static-libgcc -static-libstdc++
QT += webkit network xmlpatterns svg
greaterThan(QT_MAJOR_VERSION, 4): QT += webkitwidgets