diff options
author | grant <grant> | 2003-09-27 17:20:38 +0000 |
---|---|---|
committer | grant <grant> | 2003-09-27 17:20:38 +0000 |
commit | 02ffa658f2994fc2bea78211023595220b6894e5 (patch) | |
tree | 3c7584cda6361b6467b9d7543e9b6e21bf50be47 /mk | |
parent | fd74ad5fe7440959a05e75aa5bf46634c0285994 (diff) | |
download | pkgsrc-02ffa658f2994fc2bea78211023595220b6894e5.tar.gz |
set CC and CXX defaults for SunPro when USE_SUNPRO is defined.
the path to cc and CC can be overridden in /etc/mk.conf or on
the command line.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/compiler.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk index 1e92273b392..e89a50a4aa9 100644 --- a/mk/compiler.mk +++ b/mk/compiler.mk @@ -1,4 +1,4 @@ -# $NetBSD: compiler.mk,v 1.12 2003/09/24 12:22:04 grant Exp $ +# $NetBSD: compiler.mk,v 1.13 2003/09/27 17:20:38 grant Exp $ # This Makefile fragment implements handling for supported # C/C++/fortran compilers. @@ -45,6 +45,14 @@ .if !defined(COMPILER_MK) COMPILER_MK= # defined +# Defaults for SunPro, work around sys.mk setting CC by default to +# 'gcc'. These can be overriden by the user in /etc/mk.conf or on the +# command line. +.if defined(USE_SUNPRO) && defined(CC) && !empty(CC:Mgcc) +CC= /opt/SUNWspro/bin/cc +CXX= /opt/SUNWspro/bin/CC +.endif + # Do a dance to determine which version of gcc is being used, if any, # and whether it satisfies GCC_REQD. # |