pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler Prepend the CCC compiler dir to the PATH s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/68fcb1ad35f4
branches:  trunk
changeset: 487317:68fcb1ad35f4
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Jan 12 17:39:18 2005 +0000

description:
Prepend the CCC compiler dir to the PATH so that they're found by the
wrapper scripts.

diffstat:

 mk/compiler/ccc.mk |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 5f889b80a05a -r 68fcb1ad35f4 mk/compiler/ccc.mk
--- a/mk/compiler/ccc.mk        Wed Jan 12 17:30:34 2005 +0000
+++ b/mk/compiler/ccc.mk        Wed Jan 12 17:39:18 2005 +0000
@@ -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 @@
 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_}})



Home | Main Index | Thread Index | Old Index