diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-03-03 11:04:13 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-03-07 11:28:53 +0000 |
commit | 023478ee3838ee9c7ef00488ea2a39282a3ea4b8 (patch) | |
tree | d97ace0a4e661916646cfebcbdb376c698998a87 /src/core/core_module.pro | |
parent | 80ef5d39381f43af2e2b1ca7d2443d687f09e413 (diff) |
Use GN linker flags on core_module
Again enable linking with the flags GN calculated for us.
Also fixes a typo that meant we didn't get the link timing flags on
Windows.
Change-Id: Idd46fd65ea7618a9c510fa2c790569f5974aa5ff
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/core_module.pro')
-rw-r--r-- | src/core/core_module.pro | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/core_module.pro b/src/core/core_module.pro index d2506e343..fecee2536 100644 --- a/src/core/core_module.pro +++ b/src/core/core_module.pro @@ -37,9 +37,10 @@ use?(gn){ linux: LIBS_PRIVATE += -Wl,--start-group $$NINJA_ARCHIVES -Wl,--end-group else: LIBS_PRIVATE += $$NINJA_ARCHIVES LIBS_PRIVATE += $$NINJA_LIB_DIRS $$NINJA_LIBS - # We need to use ObjC runtime to have categories selectors working. - macos: QMAKE_LFLAGS += -Wl,-ObjC -# QMAKE_LFLAGS += $$NINJA_LFLAGS + # GN's LFLAGS doesn't always work across all the Linux configurations we support. + # The Windows and macOS ones from GN does provide a few useful flags however + linux: QMAKE_LFLAGS += -Wl,--gc-sections -Wl,-O1 -Wl,-z,now -Wl,-z,defs + else: QMAKE_LFLAGS += $$NINJA_LFLAGS POST_TARGETDEPS += $$NINJA_TARGETDEPS } |