summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-10-06 13:56:46 +0000
committergrant <grant@pkgsrc.org>2004-10-06 13:56:46 +0000
commit2644aa2b45e65db350d9b1f951c293ce66311867 (patch)
tree907ac26f772290e92b97a376a1567969cd46b5b3 /mk/compiler
parent4ba70e3e1a0bc6436b33ffe335640e9bf188c9d2 (diff)
downloadpkgsrc-2644aa2b45e65db350d9b1f951c293ce66311867.tar.gz
call the C compiler as 'xlc' so libtool mostly DTRT.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/xlc.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/compiler/xlc.mk b/mk/compiler/xlc.mk
index b4ab75dd3c6..2ab19194572 100644
--- a/mk/compiler/xlc.mk
+++ b/mk/compiler/xlc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: xlc.mk,v 1.1 2004/10/06 09:49:53 grant Exp $
+# $NetBSD: xlc.mk,v 1.2 2004/10/06 13:56:46 grant Exp $
.if !defined(COMPILER_XLC_MK)
COMPILER_XLC_MK= defined
@@ -19,8 +19,8 @@ _LANGUAGES.xlc+= ${LANGUAGES.xlc:M${_lang_}}
_XLC_DIR= ${WRKDIR}/.xlc
_XLC_LINKS= # empty
-.if exists(${XLCBASE}/bin/cc)
-_XLC_CC= ${_XLC_DIR}/bin/cc
+.if exists(${XLCBASE}/bin/xlc)
+_XLC_CC= ${_XLC_DIR}/bin/xlc
_XLC_LINKS+= _XLC_CC
PKG_CC= ${_XLC_CC}
CC= ${PKG_CC:T}
@@ -32,8 +32,8 @@ PKG_CXX= ${_XLC_CXX}
CXX= ${PKG_CXX:T}
.endif
-.if exists(${XLCBASE}/bin/cc)
-CC_VERSION_STRING!= ${XLCBASE}/bin/cc -V 2>&1 | ${GREP} 'IBM XL C.*for' | ${SED} -e 's/^ *//' || ${TRUE}
+.if exists(${XLCBASE}/bin/xlc)
+CC_VERSION_STRING!= ${XLCBASE}/bin/xlc -V 2>&1 | ${GREP} 'IBM XL C.*for' | ${SED} -e 's/^ *//' || ${TRUE}
CC_VERSION= ${CC_VERSION_STRING}
.else
CC_VERSION_STRING?= ${CC_VERSION}