aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2019-01-07 21:47:42 +0100
committerDavide Pesavento <pesa@gentoo.org>2019-01-07 21:47:42 +0100
commit9f5cfe5f4abb8e97ac0231301e6c0bdb31d21796 (patch)
treedb21c9c1d05304839208cb7cf70875b0cf212fc1 /eclass
parentdev-qt: sync KEYWORDS (diff)
downloadqt-9f5cfe5f4abb8e97ac0231301e6c0bdb31d21796.tar.gz
qt-9f5cfe5f4abb8e97ac0231301e6c0bdb31d21796.tar.bz2
qt-9f5cfe5f4abb8e97ac0231301e6c0bdb31d21796.zip
qt5-build.eclass: move the 's/optimize_full//' sed where it belongs
Signed-off-by: Davide Pesavento <pesa@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt5-build.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index c6c08a6b..d0a73287 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -178,9 +178,11 @@ qt5-build_src_prepare() {
sed -i -e "/^QMAKE_CONF_COMPILER=/ s:=.*:=\"$(tc-getCXX)\":" \
configure || die "sed failed (QMAKE_CONF_COMPILER)"
- # Don't add -O3 to CXXFLAGS (bug 549140)
- sed -i -e '/CONFIG\s*+=/ s/optimize_full//' \
- src/{corelib/corelib,gui/gui}.pro || die "sed failed (optimize_full)"
+ if [[ ${QT5_MINOR_VERSION} -lt 12 ]]; then
+ # Don't add -O3 to CXXFLAGS (bug 549140)
+ sed -i -e '/CONFIG\s*+=/ s/optimize_full//' \
+ src/{corelib/corelib,gui/gui}.pro || die "sed failed (optimize_full)"
+ fi
# Respect build variables in configure tests (bug #639494)
sed -i -e "s|\"\$outpath/bin/qmake\" \"\$relpathMangled\" -- \"\$@\"|& $(qt5_qmake_args) |" configure || die