summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-01-01 20:00:27 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2024-01-10 12:00:52 +0100
commit4896a20cd4bafc0f724f739e03a455260d17fe6c (patch)
tree93b72f510b5eefbc0aecf01295889b1da77fa155 /eclass/qt5-build.eclass
parentcmake.eclass: Set CMAKE_DISABLE_PRECOMPILE_HEADERS=ON (diff)
downloadgentoo-4896a20cd4bafc0f724f739e03a455260d17fe6c.tar.gz
gentoo-4896a20cd4bafc0f724f739e03a455260d17fe6c.tar.bz2
gentoo-4896a20cd4bafc0f724f739e03a455260d17fe6c.zip
qt5-build.eclass: Move append-ldflags and filter-lto to src_prepare
Closes: https://bugs.gentoo.org/919789 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r--eclass/qt5-build.eclass18
1 files changed, 9 insertions, 9 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 0e416e253cc2..76a089b2908d 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -179,6 +179,15 @@ fi
qt5-build_src_prepare() {
qt5_prepare_env
+ # Workaround for bug #915203
+ # Upstream: https://bugreports.qt.io/browse/QTBUG-111514
+ if [[ ${PN} != qtcore ]]; then
+ append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
+ fi
+
+ # many bugs, no one to fix
+ filter-lto
+
if [[ ${QT5_BUILD_TYPE} == live ]] || [[ -n ${KDE_ORG_COMMIT} ]]; then
if [[ -n ${KDE_ORG_COMMIT} ]]; then
einfo "Preparing KDE Qt5PatchCollection snapshot at ${KDE_ORG_COMMIT}"
@@ -231,15 +240,6 @@ qt5-build_src_configure() {
qt5_tools_configure
fi
- # Workaround for bug #915203
- # Upstream: https://bugreports.qt.io/browse/QTBUG-111514
- if [[ ${PN} != qtcore ]] ; then
- append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
- fi
-
- # many bugs, no one to fix
- filter-lto
-
qt5_foreach_target_subdir qt5_qmake
}