pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk set CC and CXX defaults for SunPro when USE_SUNPRO ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/16ab59d8f919
branches:  trunk
changeset: 462184:16ab59d8f919
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Sep 27 17:20:38 2003 +0000

description:
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:

 mk/compiler.mk |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 4c399727195c -r 16ab59d8f919 mk/compiler.mk
--- a/mk/compiler.mk    Sat Sep 27 17:07:34 2003 +0000
+++ b/mk/compiler.mk    Sat Sep 27 17:20:38 2003 +0000
@@ -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.
 #



Home | Main Index | Thread Index | Old Index