diff options
author | wiz <wiz@pkgsrc.org> | 2013-02-21 07:57:19 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2013-02-21 07:57:19 +0000 |
commit | 746b6d4ec7c4cd3e8e25375b63a829c25f22f8eb (patch) | |
tree | 41ae1de960d337918dd6022a0328ff0550e91ba2 /mk | |
parent | 511520f67e8b5943121e6fb76f2367862d9de5ab (diff) | |
download | pkgsrc-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.mk | 4 |
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 |