Accepting request 845064 from KDE:Qt:5.15

- Disable -reduce-relocations for now (boo#1175278, QTBUG-86173)

OBS-URL: https://build.opensuse.org/request/show/845064
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtbase?expand=0&rev=113
This commit is contained in:
Dominique Leuenberger 2020-11-03 14:15:37 +00:00 committed by Git OBS Bridge
commit a43fce4e1d
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Oct 28 13:22:24 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
- Disable -reduce-relocations for now (boo#1175278, QTBUG-86173)
-------------------------------------------------------------------
Wed Oct 14 19:28:37 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>

View File

@ -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 \