summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorschwarz <schwarz@pkgsrc.org>2006-08-06 18:59:41 +0000
committerschwarz <schwarz@pkgsrc.org>2006-08-06 18:59:41 +0000
commitff389f044d3a4328aa36a17264367c4a62058773 (patch)
tree83039065d6f2b4dee8d811ea70d5a72b39c7e1dc /mk/compiler
parent26cb424a14de0582f2fb51e2f253f5e68f67bc54 (diff)
downloadpkgsrc-ff389f044d3a4328aa36a17264367c4a62058773.tar.gz
CPP on IRIX 5 with IDO cc is /usr/lib/cpp
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/ido.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/mk/compiler/ido.mk b/mk/compiler/ido.mk
index 6c2e08f3cd5..1e33d6b2d44 100644
--- a/mk/compiler/ido.mk
+++ b/mk/compiler/ido.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ido.mk,v 1.2 2005/10/30 10:33:23 schwarz Exp $
+# $NetBSD: ido.mk,v 1.3 2006/08/06 18:59:41 schwarz Exp $
.if !defined(COMPILER_IDO_MK)
COMPILER_IDO_MK= defined
@@ -22,6 +22,13 @@ _ALIASES.CC= cc
CCPATH= ${IDOBASE}/bin/cc
PKG_CC:= ${_IDO_CC}
.endif
+.if exists(${IDOBASE}/lib/cpp)
+_IDO_VARS+= CPP
+_IDO_CPP= ${_IDO_DIR}/bin/cpp
+_ALIASES.CPP= cpp
+CPPPATH= ${IDOBASE}/lib/cpp
+PKG_CPP:= ${_IDO_CPP}
+.endif
_COMPILER_STRIP_VARS+= ${_IDO_VARS}
CC_VERSION?= ${LOWER_OPSYS} ido cc
@@ -53,7 +60,7 @@ ${_IDO_${_var_}}:
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
${_PKG_SILENT}${_PKG_DEBUG} \
(${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'exec ${IDOBASE}/bin/${.TARGET:T} "$$@"'; \
+ ${ECHO} 'exec ${${_var_}PATH} "$$@"'; \
) > ${.TARGET}
${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}