summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-02-21 07:57:19 +0000
committerwiz <wiz@pkgsrc.org>2013-02-21 07:57:19 +0000
commit746b6d4ec7c4cd3e8e25375b63a829c25f22f8eb (patch)
tree41ae1de960d337918dd6022a0328ff0550e91ba2 /mk
parent511520f67e8b5943121e6fb76f2367862d9de5ab (diff)
downloadpkgsrc-746b6d4ec7c4cd3e8e25375b63a829c25f22f8eb.tar.gz
clang -dumpversion prints 4.2.1, which is not the intended content
of CC_VERSION. Use clang --version | sed to get a more usable string.
Diffstat (limited to 'mk')
-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 f666ff821e6..83016760de1 100644
--- a/mk/compiler/clang.mk
+++ b/mk/compiler/clang.mk
@@ -1,4 +1,4 @@
-# $NetBSD: clang.mk,v 1.7 2011/07/19 14:02:47 joerg Exp $
+# $NetBSD: clang.mk,v 1.8 2013/02/21 07:57:19 wiz 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} -dumpversion 2>&1
+CC_VERSION!= ${CCPATH} --version 2>&1 | ${SED} -n "s/clang version /clang-/p"
.else
CC_VERSION_STRING?= ${CC_VERSION}
CC_VERSION?= clang