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 path to the compiler to PATH e...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eb2ed8aa9fc3
branches:  trunk
changeset: 467457:eb2ed8aa9fc3
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Feb 01 01:23:37 2004 +0000

description:
Prepend the path to the compiler to PATH even if we're using the builtin
compiler.  This makes ccache and distcc call the correct compiler from
examining the PATH.

diffstat:

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

diffs (21 lines):

diff -r 4a577e9bc794 -r eb2ed8aa9fc3 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Sun Feb 01 01:09:09 2004 +0000
+++ b/mk/compiler/gcc.mk        Sun Feb 01 01:23:37 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.2 2004/02/01 00:59:51 jlam Exp $
+# $NetBSD: gcc.mk,v 1.3 2004/02/01 01:23:37 jlam Exp $
 
 .if !defined(COMPILER_GCC_MK)
 COMPILER_GCC_MK=       defined
@@ -202,6 +202,11 @@
 F77=           ${_GCC_PREFIX}bin/g77
 PKG_FC:=       ${F77}
 .  endif
+.else
+.  if !empty(_IS_BUILTIN_GCC:M[yY][eE][sS])
+_GCC_PATH!=    ${TYPE} ${CC} | ${AWK} '{ print $$NF }'
+PATH:=         ${_GCC_PATH:H}:${PATH}
+.  endif
 .endif
 
 # Pass the required flags to imake to tell it we're using gcc on Solaris.



Home | Main Index | Thread Index | Old Index