Accepting request 952238 from KDE:Qt:6.2

OBS-URL: https://build.opensuse.org/request/show/952238
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt6/qt6-macros?expand=0&rev=5
This commit is contained in:
Christophe Giboudeaux 2022-02-07 20:01:32 +00:00 committed by Git OBS Bridge
parent 8734329a22
commit 21253e2a28
3 changed files with 13 additions and 1 deletions

View File

@ -174,6 +174,11 @@
%qt6_use_make %global __qt6_build_tool %__make
#--------------------------------------------------------------
# NOTE:
# Due to how gcc-pie is packaged, the PIE flags are only
# recognized by the default compiler (boo#1195628)
# We can't rely on the check_pie_supported() function. That's
# why CMAKE_CXX_LINK_PIE_SUPPORTED is enabled
%cmake_qt6 \
cmake -DCMAKE_BUILD_TYPE:STRING=%{__qt6_build_type} \\\
-DCMAKE_INSTALL_PREFIX:STRING=%{_qt6_prefix} \\\
@ -187,6 +192,7 @@
%if 0%{?suse_version} == 1500 \
-DCMAKE_C_COMPILER:STRING=gcc-10 \\\
-DCMAKE_CXX_COMPILER:STRING=g++-10 \\\
-DCMAKE_CXX_LINK_PIE_SUPPORTED:BOOL=ON \\\
%endif \
-DQT_DISABLE_RPATH:BOOL=ON \\\
-DCMAKE_C_FLAGS:STRING="%{optflags}" \\\

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 7 13:47:05 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Ensure PIE flags are passed to the linker on Leap to work around
an issue caused by GCC packaging (boo#1195628)
-------------------------------------------------------------------
Thu Sep 16 14:07:45 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -17,7 +17,7 @@
Name: qt6-macros
Version: 20210610
Version: 20220207
Release: 0
Summary: RPM macros for Qt6 packages
License: MIT