aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2018-03-03 04:15:19 +0100
committerMichael Palimaka <kensington@gentoo.org>2018-03-07 23:47:13 +1100
commitc0679fd90abb0e90205754a2e41bcb3dc97e31e5 (patch)
tree0f62b0e6d3b3a4a4efae7a460e6d3073e9f290cb /eclass
parentqt5-build.eclass: stop using deprecated ltprune.eclass (diff)
downloadqt-c0679fd90abb0e90205754a2e41bcb3dc97e31e5.tar.gz
qt-c0679fd90abb0e90205754a2e41bcb3dc97e31e5.tar.bz2
qt-c0679fd90abb0e90205754a2e41bcb3dc97e31e5.zip
qt5-build.eclass: Pass -platform option to configure on FreeBSD and Linux.
Bug: https://bugs.gentoo.org/649406
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt5-build.eclass19
1 files changed, 18 insertions, 1 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 12695141..3b961700 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: qt5-build.eclass
@@ -544,6 +544,23 @@ qt5_base_configure() {
-examplesdir "${QT5_EXAMPLESDIR}"
-testsdir "${QT5_TESTSDIR}"
+ # force appropriate compiler
+ if [[ ${QT5_MINOR_VERSION} -ge 10 ]]; then
+ $(if use kernel_FreeBSD; then
+ if tc-is-gcc; then
+ echo -platform freebsd-g++
+ elif tc-is-clang; then
+ echo -platform freebsd-clang
+ fi
+ elif use kernel_linux; then
+ if tc-is-gcc; then
+ echo -platform linux-g++
+ elif tc-is-clang; then
+ echo -platform linux-clang
+ fi
+ fi)
+ fi
+
# configure in release mode by default,
# override via the CONFIG qmake variable
-release