diff options
author | joerg <joerg@pkgsrc.org> | 2007-08-30 21:47:29 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-08-30 21:47:29 +0000 |
commit | 1871076e0caa935871c7c024662c3a99a3ed9e19 (patch) | |
tree | 5d45cb05c7a638f38d7eb0949c9351c45105db60 | |
parent | ca11c327448cbd35d8a54db45f826f595071ade9 (diff) | |
download | pkgsrc-1871076e0caa935871c7c024662c3a99a3ed9e19.tar.gz |
At least with XLC V9, xlc -V isn't that useful as it prints the
man page. Use -qversion instead.
-rw-r--r-- | mk/compiler/xlc.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/compiler/xlc.mk b/mk/compiler/xlc.mk index 1b73d41d156..f5a7716227c 100644 --- a/mk/compiler/xlc.mk +++ b/mk/compiler/xlc.mk @@ -1,4 +1,4 @@ -# $NetBSD: xlc.mk,v 1.15 2007/08/15 21:26:28 joerg Exp $ +# $NetBSD: xlc.mk,v 1.16 2007/08/30 21:47:29 joerg Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -87,7 +87,7 @@ _COMPILER_RPATH_FLAG= -Wl,-R _LINKER_RPATH_FLAG= -R .if exists(${CCPATH}) -CC_VERSION_STRING!= ${CCPATH} -V 2>&1 | ${GREP} 'IBM XL C.*for' | ${SED} -e 's/^ *//' || ${TRUE} +CC_VERSION_STRING!= ${CCPATH} -qversion 2>&1 | ${GREP} 'IBM XL C.*for' | ${SED} -e 's/^ *//' || ${TRUE} CC_VERSION= ${CC_VERSION_STRING} .else CC_VERSION_STRING?= ${CC_VERSION} |