diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-02-17 14:58:16 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-02-25 15:47:50 +0100 |
commit | 119ffd478134d793fb4414a65549acd19e919e0b (patch) | |
tree | 91f81998f26ec91771230b7def53d2e0ce5e4011 /src/gui/.prev_CMakeLists.txt | |
parent | bbf46e38b1d0f70b5c830b3ae2fccf66cf7edb8d (diff) |
CMake: Port the reduce-relocations feature
As reduce-relocations implies bsymbolic_functions, we also add the
-Bsymbolic-functions linker flag.
Also, handle the .dynlist files that are passed to the linker by
bsymbolic_functions.prf in the qmake build.
Change-Id: I535c33fba888596d2f8975b16864bbe9f0a7caa4
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/gui/.prev_CMakeLists.txt')
-rw-r--r-- | src/gui/.prev_CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/.prev_CMakeLists.txt b/src/gui/.prev_CMakeLists.txt index 8d1ea159f0..953dc8b2da 100644 --- a/src/gui/.prev_CMakeLists.txt +++ b/src/gui/.prev_CMakeLists.txt @@ -241,9 +241,12 @@ qt_add_resource(Gui "qpdf" ${qpdf_resource_files} ) +if(QT_FEATURE_reduce_relocations AND UNIX AND GCC) + target_link_options(Gui PRIVATE + "LINKER:--dynamic-list=${CMAKE_CURRENT_LIST_DIR}/QtGui.dynlist") +endif() #### Keys ignored in scope 1:.:.:gui.pro:<TRUE>: -# QMAKE_DYNAMIC_LIST_FILE = "$$PWD/QtGui.dynlist" # QMAKE_LIBS = "$$QMAKE_LIBS_GUI" ## Scopes: |