summaryrefslogtreecommitdiffstats
path: root/src/entrypoint/entrypoint.pro
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-11-02 17:12:32 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-11-03 00:14:04 +0100
commit6032a9ca1a69fa074d6d0ffe5ada642770af1d00 (patch)
tree11bbd74b354d38142549d553b08be55aadd0dbdb /src/entrypoint/entrypoint.pro
parent2096463afc40acdabbaa587e18c0184f04d76dfb (diff)
Allow adding linker flags to qmake module pris
The flags go before the library in the final linker line, as opposed to the dependencies declared in LIBS. This allows us to declare the flags for the entrypoint in the project file of the entrypoint, instead of in a standalone prf. Change-Id: I35c054fe9fdaa6add7cd0e8ba3f7304f975ff80f Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
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
}
}