pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/bootstrap Add default CC, CXX and CPP to mk.conf for S...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c090e75d4f28
branches:  trunk
changeset: 553441:c090e75d4f28
user:      sketch <sketch%pkgsrc.org@localhost>
date:      Wed Jan 21 00:07:40 2009 +0000

description:
Add default CC, CXX and CPP to mk.conf for Sun Studio.  Ideally none of
these would have to be set here and instead default in mk/compiler but
the legacy share/*.mk stuff won't allow that yet.

diffstat:

 bootstrap/bootstrap |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r fb7fbaea7a07 -r c090e75d4f28 bootstrap/bootstrap
--- a/bootstrap/bootstrap       Tue Jan 20 23:58:25 2009 +0000
+++ b/bootstrap/bootstrap       Wed Jan 21 00:07:40 2009 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.137 2008/11/19 16:35:23 sketch Exp $
+# $NetBSD: bootstrap,v 1.138 2009/01/21 00:07:40 sketch Exp $
 #
 #
 # Copyright (c) 2001-2002 Alistair G. Crooks.  All rights reserved.
@@ -829,6 +829,13 @@
 if [ "$compiler" != "" ]; then
        echo "PKGSRC_COMPILER=  $compiler" >> ${TARGET_MKCONF}
 fi
+case "$compiler" in
+sunpro)
+       echo "CC=                       cc"        >> ${TARGET_MKCONF}
+       echo "CXX=                      CC"        >> ${TARGET_MKCONF}
+       echo "CPP=                      \${CC} -E" >> ${TARGET_MKCONF}
+       ;;
+esac
 if [ -n "$SUNWSPROBASE" ]; then
        echo "SUNWSPROBASE=             $SUNWSPROBASE" >> ${TARGET_MKCONF}
 fi



Home | Main Index | Thread Index | Old Index