commit:     dc29c68cf0dc302a94d1e1f11c95a6e17511381b
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Sat Mar  3 03:15:19 2018 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Mon Mar 12 00:49:53 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc29c68c

qt5-build.eclass: Pass -platform option to configure on FreeBSD and Linux.

Closes: https://bugs.gentoo.org/649406

 eclass/qt5-build.eclass | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 12695141072..2517d3992dd 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,24 @@ qt5_base_configure() {
                -examplesdir "${QT5_EXAMPLESDIR}"
                -testsdir "${QT5_TESTSDIR}"
 
+               # force appropriate compiler
+               $(if use kernel_FreeBSD; then
+                       if tc-is-gcc; then
+                               echo -platform freebsd-g++
+                       elif tc-is-clang; then
+                               echo -platform freebsd-clang
+                       fi
+               fi)
+               $(if [[ ${QT5_MINOR_VERSION} -ge 10 ]]; then
+                       if 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

Reply via email to