summaryrefslogtreecommitdiff
path: root/eclass/qt5-build.eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-05-03 06:27:03 +0100
committerSam James <sam@gentoo.org>2025-05-03 06:27:03 +0100
commit36d4028db62cee4a64ea56c0b3273528957a0c4e (patch)
tree2b80895105c2c0e04726a9862bb68c084030eaa8 /eclass/qt5-build.eclass
parentff94d3a3dfe7480b42f5cd27b864eacedbc40e2d (diff)
downloadgentoo-36d4028db62cee4a64ea56c0b3273528957a0c4e.tar.gz
gentoo-36d4028db62cee4a64ea56c0b3273528957a0c4e.tar.bz2
gentoo-36d4028db62cee4a64ea56c0b3273528957a0c4e.zip
qt5-build.eclass: disable reduce-relocations
For Qt 5, it's best to just disable reduce-relocations, because it doesn't (unlike Qt 6) support -mno-direct-extern-access, which means CMake applications building against Qt 5 are prone to all the issues mentioned in the bug. Bug: https://bugs.gentoo.org/754021 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r--eclass/qt5-build.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 1a0335b9d2b6..7f79cd8e4063 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: qt5-build.eclass
@@ -679,10 +679,10 @@ qt5_base_configure() {
# link-time code generation is not something we want to enable by default
-no-ltcg
- # reduced relocations cause major breakage on at least arm and ppc, so
- # don't specify anything and let the configure figure out if they are
- # supported; see also https://bugreports.qt.io/browse/QTBUG-36129
- #-reduce-relocations
+ # Qt 5 doesn't support -mno-direct-extern-access, so uses
+ # -Bsymbolic, which causes issues for consumers if not linking
+ # corectly (bug #754021).
+ -no-reduce-relocations
# use the system linker (gold will be selected automagically otherwise)
$(tc-ld-is-gold && echo -use-gold-linker || echo -no-use-gold-linker)