summaryrefslogtreecommitdiff
path: root/mk/compiler/gcc.mk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2004-11-23 00:46:26 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2004-11-23 00:46:26 +0000
commit1efd5924957fa1337f4de99129a040fae2b9eb21 (patch)
tree9eba68a1aa2cef268350c60f831fa3fa594b4e92 /mk/compiler/gcc.mk
parent0597d2a1f0944a7bedc9ebee85a32e7583dced0e (diff)
downloadpkgsrc-1efd5924957fa1337f4de99129a040fae2b9eb21.tar.gz
add {CC,CXX,FC,F77}PATH variables which give the complete path and
name of the {CC,CXX,FC,F77} compilers. These will be used by pkgs which need to know which compiler and where it is at run time. Approved by jlam@
Diffstat (limited to 'mk/compiler/gcc.mk')
-rw-r--r--mk/compiler/gcc.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 26334089deb..9f20de73000 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.74 2004/11/22 22:24:47 wiz Exp $
+# $NetBSD: gcc.mk,v 1.75 2004/11/23 00:46:26 dmcmahill Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -346,6 +346,7 @@ _GCC_CC= ${_GCC_DIR}/bin/gcc
_GCC_LINKS+= _GCC_CC
PKG_CC= ${_GCC_CC}
CC= ${PKG_CC:T}
+CCPATH= ${_GCCBINDIR}/gcc
.endif
.if exists(${_GCCBINDIR}/cpp) && ${OPSYS} != "Darwin"
_GCC_CPP= ${_GCC_DIR}/bin/cpp
@@ -358,6 +359,7 @@ _GCC_CXX= ${_GCC_DIR}/bin/g++
_GCC_LINKS+= _GCC_CXX
PKG_CXX= ${_GCC_CXX}
CXX= ${PKG_CXX:T}
+CXXPATH= ${_GCCBINDIR}/g++
.endif
.if exists(${_GCCBINDIR}/g77)
_GCC_FC= ${_GCC_DIR}/bin/g77
@@ -365,6 +367,8 @@ _GCC_LINKS+= _GCC_FC
PKG_FC= ${_GCC_FC}
FC= ${PKG_FC:T}
F77= ${PKG_FC:T}
+FCPATH= ${_GCCBINDIR}/g77
+F77PATH= ${_GCCBINDIR}/g77
.endif
# Pass the required flags to imake to tell it we're using gcc on Solaris.