From 748f62d730ae3386cb7a8db740ae8929746d9052ef044bc303e58eebe1c8f3e7 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Fri, 30 Oct 2020 15:48:53 +0000 Subject: [PATCH] Accepting request 845031 from home:Vogtinator:morerelocsfornow - Disable -reduce-relocations for now (boo#1175278, QTBUG-86173) OBS-URL: https://build.opensuse.org/request/show/845031 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:5.15/libqt5-qtbase?expand=0&rev=17 --- libqt5-qtbase.changes | 5 +++++ libqt5-qtbase.spec | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/libqt5-qtbase.changes b/libqt5-qtbase.changes index ddd0615..30215f5 100644 --- a/libqt5-qtbase.changes +++ b/libqt5-qtbase.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 28 13:22:24 UTC 2020 - Fabian Vogt + +- Disable -reduce-relocations for now (boo#1175278, QTBUG-86173) + ------------------------------------------------------------------- Wed Oct 14 19:28:37 UTC 2020 - Stefan BrĂ¼ns diff --git a/libqt5-qtbase.spec b/libqt5-qtbase.spec index 6c19574..2eb96f1 100644 --- a/libqt5-qtbase.spec +++ b/libqt5-qtbase.spec @@ -834,6 +834,11 @@ sed -i 's|qt_instdate=`date +%Y-%m-%d`|qt_instdate=$CHANGES|g' configure sed -i -e 's|^\(QMAKE_STRIP.*=\).*$|\1|g' mkspecs/common/linux.conf # -no-feature-relocatable is needed to support /usr/lib/sse2 etc., see QTBUG-78948 +# -reduce-relocations means copy relocations aren't allowed, and so special +# flags like -fPIC need to be passed when building an application. This breaks +# with LTO (PIE overrides that) and CMake (doesn't pass -fPIC when linking). +# Due to a binutils bug/misunderstanding, this option didn't do as much before 2.35, +# so just disable it for now until a proper alternative appears. echo yes | ./configure \ -prefix %{_prefix} \ @@ -851,11 +856,7 @@ echo yes | ./configure \ -sysconfdir %{libqt5_sysconfdir} \ -translationdir %{libqt5_translationdir} \ -verbose \ -%ifarch %ix86 x86_64 - -reduce-relocations \ -%else -no-reduce-relocations \ -%endif %ifarch %ix86 %if 0%{?sle_version} < 150000 -no-sse2 -no-pch \