aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.qt.mk
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2013-10-22 03:47:02 +0800
committermakc <makc@FreeBSD.org>2013-10-22 03:47:02 +0800
commit1480a0c0ca1522cadd50455cb3bc97033dbf8183 (patch)
tree7f3c294810af488a967d2f34cd6e23010ac83447 /Mk/bsd.qt.mk
parent5df3e128189f9072a38d5f1d5f9402734ada97b6 (diff)
downloadfreebsd-ports-gnome-1480a0c0ca1522cadd50455cb3bc97033dbf8183.tar.gz
freebsd-ports-gnome-1480a0c0ca1522cadd50455cb3bc97033dbf8183.tar.zst
freebsd-ports-gnome-1480a0c0ca1522cadd50455cb3bc97033dbf8183.zip
Pass CC/CXX to qmake when we can't find appropriate QMAKESPEC
Reported by: amdmi3
Diffstat (limited to 'Mk/bsd.qt.mk')
-rw-r--r--Mk/bsd.qt.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/bsd.qt.mk b/Mk/bsd.qt.mk
index ace165716294..8e2f81005077 100644
--- a/Mk/bsd.qt.mk
+++ b/Mk/bsd.qt.mk
@@ -337,6 +337,9 @@ QMAKESPEC?= ${QT_PREFIX}/share/qt4/mkspecs/freebsd-${QMAKE_COMPILER}
.else
# If something went wrong, default to the base configuration.
QMAKESPEC?= ${QT_PREFIX}/share/qt4/mkspecs/freebsd-${QMAKE_BASE_COMPILER}
+QMAKE_ARGS+= QMAKE_CC="${CC}" QMAKE_CXX="${CXX}" \
+ QMAKE_LINK="${CXX}" QMAKE_LINK_SHLIB="${CXX}" \
+ QMAKE_LINK_C="${CC}" QMAKE_LINK_C_SHLIB="${CC}"
.endif
.for component in ${_USE_QT4_ALL}