From 119ffd478134d793fb4414a65549acd19e919e0b Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 17 Feb 2020 14:58:16 +0100 Subject: 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 --- configure.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.cmake') diff --git a/configure.cmake b/configure.cmake index 9f620a8973..075c8df7a8 100644 --- a/configure.cmake +++ b/configure.cmake @@ -447,6 +447,12 @@ qt_feature("reduce_exports" PRIVATE ) qt_feature_definition("reduce_exports" "QT_VISIBILITY_AVAILABLE") qt_feature_config("reduce_exports" QMAKE_PUBLIC_QT_CONFIG) +qt_feature("reduce_relocations" PRIVATE + LABEL "Reduce amount of relocations" + CONDITION NOT WIN32 AND TEST_reduce_relocations +) +qt_feature_definition("reduce_relocations" "QT_REDUCE_RELOCATIONS") +qt_feature_config("reduce_relocations" QMAKE_PUBLIC_QT_CONFIG) qt_feature("signaling_nan" PUBLIC LABEL "Signaling NaN" CONDITION TEST_signaling_nan -- cgit v1.2.3