From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B7A8C1584AD for ; Sat, 03 May 2025 05:28:13 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id A617B342FB0 for ; Sat, 03 May 2025 05:28:13 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 03FAC11036D; Sat, 03 May 2025 05:28:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id ED55611036D for ; Sat, 03 May 2025 05:28:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 95FDB342F9E for ; Sat, 03 May 2025 05:28:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 334BD23FF for ; Sat, 03 May 2025 05:28:08 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1746250023.36d4028db62cee4a64ea56c0b3273528957a0c4e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/qt5-build.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 36d4028db62cee4a64ea56c0b3273528957a0c4e X-VCS-Branch: master Date: Sat, 03 May 2025 05:28:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d955f61f-f90a-49f2-b6eb-95397cffde66 X-Archives-Hash: ed0ae6c0ceb3f9fe18178fc607e3f048 commit: 36d4028db62cee4a64ea56c0b3273528957a0c4e Author: Sam James gentoo org> AuthorDate: Sat May 3 05:27:03 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sat May 3 05:27:03 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36d4028d 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 gentoo.org> eclass/qt5-build.eclass | 10 +++++----- 1 file 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)