aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2011-07-02 04:02:37 +0800
committermakc <makc@FreeBSD.org>2011-07-02 04:02:37 +0800
commit1ec6d342cc8bac2a1d7d034b34571b328c4353d6 (patch)
tree53c9ec0fbea8c94bd07479c0db97c04414c22af4 /Mk
parent0190353493c7b4117d1557ac725182bfb2038f88 (diff)
downloadfreebsd-ports-gnome-1ec6d342cc8bac2a1d7d034b34571b328c4353d6.tar.gz
freebsd-ports-gnome-1ec6d342cc8bac2a1d7d034b34571b328c4353d6.tar.zst
freebsd-ports-gnome-1ec6d342cc8bac2a1d7d034b34571b328c4353d6.zip
Fix r1.25
Pointyhat to: me for testing different patch
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.qt.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/bsd.qt.mk b/Mk/bsd.qt.mk
index 384c772dbc12..ecb58b5acb89 100644
--- a/Mk/bsd.qt.mk
+++ b/Mk/bsd.qt.mk
@@ -112,7 +112,7 @@ QMAKEFLAGS+= QMAKE_CC="${CC}" QMAKE_CXX="${CXX}" \
#
# Translate `c++` to its real name and select the appropriate mkspec.
#
-QMAKE_BASE_COMPILER!= cc --version | head -1 | sed -E 's/.+\(([^)]+)\).+/\1/' | cut -d " " -f 1
+QMAKE_BASE_COMPILER!= cc --version 2> /dev/null | ${AWK} 'NR == 1 { gsub(/[()]/, "", $$2); print $$2 }'
.if ${QMAKE_BASE_COMPILER:L} == "gcc"
QMAKE_BASE_COMPILER= g++
.endif