summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorobache <obache>2013-02-20 10:30:41 +0000
committerobache <obache>2013-02-20 10:30:41 +0000
commita76a3362199f42d0a18a9f8b49a24d0727ba78a8 (patch)
treebcefb97998aaae6057d044eeb221ef043dc70192 /bootstrap
parent332ef66755739b99af2df177e377e16174a625f7 (diff)
downloadpkgsrc-a76a3362199f42d0a18a9f8b49a24d0727ba78a8.tar.gz
Set proper variables for the case of --compiler=clang.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap10
1 files changed, 9 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 22ab3304909..f4cd6546da8 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.185 2013/02/09 12:45:24 obache Exp $
+# $NetBSD: bootstrap,v 1.186 2013/02/20 10:30:41 obache Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -885,6 +885,14 @@ sunpro)
echo "CXX= CC" >> ${TARGET_MKCONF}
echo "CPP= \${CC} -E" >> ${TARGET_MKCONF}
;;
+clang)
+ echo "CC= clang" >> ${TARGET_MKCONF}
+ echo "CXX= clang++" >> ${TARGET_MKCONF}
+ echo "CPP= \${CC} -E" >> ${TARGET_MKCONF}
+ if [ -n "$CLANGBASE" -o -f "/bin/clang" ]; then
+ echo "CLANGBASE= $CLANGBASE" >> ${TARGET_MKCONF}
+ fi
+ ;;
esac
if [ -n "$GCCBASE" ]; then
echo "GCCBASE= $GCCBASE" >> ${TARGET_MKCONF}