pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler At least with XLC V9, xlc -V isn't that us...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/47edf8d417b4
branches:  trunk
changeset: 532800:47edf8d417b4
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Aug 30 21:47:29 2007 +0000

description:
At least with XLC V9, xlc -V isn't that useful as it prints the
man page. Use -qversion instead.

diffstat:

 mk/compiler/xlc.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 43db77f6f6ad -r 47edf8d417b4 mk/compiler/xlc.mk
--- a/mk/compiler/xlc.mk        Thu Aug 30 21:29:21 2007 +0000
+++ b/mk/compiler/xlc.mk        Thu Aug 30 21:47:29 2007 +0000
@@ -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 @@
 _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}



Home | Main Index | Thread Index | Old Index