commit:     2387fb8372d617c08ad5a63404c1699cd0a0d3b5
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 10 01:54:38 2018 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat Mar 10 01:55:44 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=2387fb83

qt5-build.eclass: remove version conditional for passing -platform on freebsd

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

 eclass/qt5-build.eclass | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 0e7111b5..2f95c64e 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -545,14 +545,15 @@ qt5_base_configure() {
                -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_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 use kernel_linux; then
                                if tc-is-gcc; then
                                        echo -platform linux-g++
                                elif tc-is-clang; then

Reply via email to