summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorsketch <sketch@pkgsrc.org>2009-01-21 00:07:40 +0000
committersketch <sketch@pkgsrc.org>2009-01-21 00:07:40 +0000
commit2d44a8903e4a6126a2b5f15f3902a52e520495a0 (patch)
tree7c6b31e3c79a49bbc9b3f8dcbf0e5ea5324ef0ab /bootstrap
parent593cd42c39b80978c15c36dff1d7798b06d49263 (diff)
downloadpkgsrc-2d44a8903e4a6126a2b5f15f3902a52e520495a0.tar.gz
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 (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap9
1 files changed, 8 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 2b75a42008c..24718b64ac4 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -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 @@ fi
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