summaryrefslogtreecommitdiffstats
path: root/src/entrypoint/entrypoint.pro
diff options
context:
space:
mode:
Diffstat (limited to 'src/entrypoint/entrypoint.pro')
-rw-r--r--src/entrypoint/entrypoint.pro5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/entrypoint/entrypoint.pro b/src/entrypoint/entrypoint.pro
index f139923b7e..4a0b0b6e4c 100644
--- a/src/entrypoint/entrypoint.pro
+++ b/src/entrypoint/entrypoint.pro
@@ -23,6 +23,11 @@ win32 {
mingw {
DEFINES += QT_NEEDS_QMAIN
MODULE_DEFINES += QT_NEEDS_QMAIN
+
+ # This library needs to come before the entry-point library in the
+ # linker line, so that the static linker will pick up the WinMain
+ # symbol from the entry-point library.
+ MODULE_LDFLAGS += -lmingw32
}
}