From e28d31dbfaca7f870240fe414ccfedceb16731d7 Mon Sep 17 00:00:00 2001 From: Ralf Nolden Date: Fri, 20 May 2016 21:50:36 +0200 Subject: [PATCH] Move freebsd-g++ mkspecs back for supported FreeBSD 9.3 and up FreeBSD 9.3 is still supported and uses gcc as the default compiler, therefore FreeBSD ports require patching the mkspecs back. To avoid patching, move the mkspecs back to the right place and adapt the path in the qmake.conf/qplatformdefs.h [ChangeLog][FreeBSD] The freebsd-g++ mkspec was moved back and no longer requires the "unsupported/" prefix, matching the FreeBSD ports tree, as FreeBSD 9.3 still defaults to using GCC. Users of GCC that did not previously use the ports patch will need to adapt their build scripts and drop the "unsupported/" prefix. Change-Id: Ideda4a33cccf5381000f6f50b6ae92a5c24ba9d4 Reviewed-by: Thiago Macieira --- configure | 2 +- mkspecs/{unsupported => }/freebsd-g++/qmake.conf | 6 +++--- mkspecs/{unsupported => }/freebsd-g++/qplatformdefs.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename mkspecs/{unsupported => }/freebsd-g++/qmake.conf (87%) rename mkspecs/{unsupported => }/freebsd-g++/qplatformdefs.h (97%) diff --git a/configure b/configure index 109c0bbbac0..9d75668452d 100755 --- a/configure +++ b/configure @@ -2872,7 +2872,7 @@ if [ -z "$PLATFORM" ]; then FreeBSD:*) PLATFORM=freebsd-clang PLATFORM_NOTES=" - - Also available for FreeBSD: freebsd-icc + - Also available for FreeBSD: freebsd-g++ " ;; OpenBSD:*) diff --git a/mkspecs/unsupported/freebsd-g++/qmake.conf b/mkspecs/freebsd-g++/qmake.conf similarity index 87% rename from mkspecs/unsupported/freebsd-g++/qmake.conf rename to mkspecs/freebsd-g++/qmake.conf index 527a94870c9..282b6bdfa7c 100644 --- a/mkspecs/unsupported/freebsd-g++/qmake.conf +++ b/mkspecs/freebsd-g++/qmake.conf @@ -5,7 +5,7 @@ MAKEFILE_GENERATOR = UNIX QMAKE_PLATFORM = freebsd bsd -include(../../common/unix.conf) +include(../common/unix.conf) QMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE @@ -29,6 +29,6 @@ QMAKE_OBJCOPY = objcopy QMAKE_NM = nm -P QMAKE_RANLIB = -include(../../common/gcc-base-unix.conf) -include(../../common/g++-unix.conf) +include(../common/gcc-base-unix.conf) +include(../common/g++-unix.conf) load(qt_config) diff --git a/mkspecs/unsupported/freebsd-g++/qplatformdefs.h b/mkspecs/freebsd-g++/qplatformdefs.h similarity index 97% rename from mkspecs/unsupported/freebsd-g++/qplatformdefs.h rename to mkspecs/freebsd-g++/qplatformdefs.h index b52be38b4ed..aa51e08990d 100644 --- a/mkspecs/unsupported/freebsd-g++/qplatformdefs.h +++ b/mkspecs/freebsd-g++/qplatformdefs.h @@ -31,4 +31,4 @@ ** ****************************************************************************/ -#include "../../freebsd-clang/qplatformdefs.h" +#include "../freebsd-clang/qplatformdefs.h"