aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorAlberto Villa <avilla@FreeBSD.org>2011-07-01 16:07:54 +0000
committerAlberto Villa <avilla@FreeBSD.org>2011-07-01 16:07:54 +0000
commit942dc67fc01b115c820f4b5330e3dfa610bf6b5d (patch)
treeaf2960a155e99d82997ac4be7a18122efeb2e32a /Mk
parent7855dfcc047723d07bb13fbe7344ffc88a449d52 (diff)
downloadports-942dc67fc01b115c820f4b5330e3dfa610bf6b5d.tar.gz
ports-942dc67fc01b115c820f4b5330e3dfa610bf6b5d.zip
Notes
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..a23b2fa4aee5 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