summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2013-07-31 06:37:27 +0000
committeradam <adam@pkgsrc.org>2013-07-31 06:37:27 +0000
commit05e386d9adf8a23ae2e6135cca92dcc72bae36d8 (patch)
treeb4213e0f5440aca3643459dc7dfbdfb6520c01f8 /mk/compiler
parentac33ea9da3bdec9e0a4298e31445c7b4a8445dfc (diff)
downloadpkgsrc-05e386d9adf8a23ae2e6135cca92dcc72bae36d8.tar.gz
Construct CC_VERSION differenty; fix for Xcode where clang reports itself as Apple LLVM
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/clang.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/compiler/clang.mk b/mk/compiler/clang.mk
index 871cdd4c3b7..8d0b22d192c 100644
--- a/mk/compiler/clang.mk
+++ b/mk/compiler/clang.mk
@@ -1,4 +1,4 @@
-# $NetBSD: clang.mk,v 1.12 2013/05/29 13:19:02 joerg Exp $
+# $NetBSD: clang.mk,v 1.13 2013/07/31 06:37:27 adam Exp $
#
# This is the compiler definition for the clang compiler.
#
@@ -41,7 +41,7 @@ PKG_CPP:= ${CPPPATH}
.if exists(${CCPATH})
CC_VERSION_STRING!= ${CCPATH} -v 2>&1
-CC_VERSION!= ${CCPATH} --version 2>&1 | ${SED} -n "s/clang version /clang-/p"
+CC_VERSION!= ${CCPATH} --version 2>&1 | ${SED} -n "s/^.* version /clang-/p"
.else
CC_VERSION_STRING?= ${CC_VERSION}
CC_VERSION?= clang