summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-01-12 17:39:18 +0000
committerjlam <jlam@pkgsrc.org>2005-01-12 17:39:18 +0000
commit5f768fe6776b42d553a74969b7dc62612f2675c8 (patch)
treea55e3fc4d5c26967f6aef3d668cb3216d328593b /mk/compiler
parent9e296c8b45c156217d3ad26a1ba95bb4f6886d5f (diff)
downloadpkgsrc-5f768fe6776b42d553a74969b7dc62612f2675c8.tar.gz
Prepend the CCC compiler dir to the PATH so that they're found by the
wrapper scripts.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/ccc.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/compiler/ccc.mk b/mk/compiler/ccc.mk
index bbeacc00eac..3f2f02c5996 100644
--- a/mk/compiler/ccc.mk
+++ b/mk/compiler/ccc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ccc.mk,v 1.8 2005/01/12 17:27:50 jlam Exp $
+# $NetBSD: ccc.mk,v 1.9 2005/01/12 17:39:18 jlam Exp $
.if !defined(COMPILER_CCC_MK)
COMPILER_CCC_MK= defined
@@ -58,6 +58,11 @@ _COMPILER_RPATH_FLAG= ${_COMPILER_LD_FLAG}${_LINKER_RPATH_FLAG},
CFLAGS+=-ieee
CXXFLAGS+=-ieee
+# Prepend the path to the compiler to the PATH.
+.if !empty(_LANGUAGES.ccc)
+PREPEND_PATH+= ${_CCC_DIR}/bin
+.endif
+
# Create compiler driver scripts in ${WRKDIR}.
.for _var_ in ${_CCC_VARS}
. if !target(${_CCC_${_var_}})