diff options
author | obache <obache> | 2013-02-20 10:30:41 +0000 |
---|---|---|
committer | obache <obache> | 2013-02-20 10:30:41 +0000 |
commit | fe75aadcc46a8a9ddd95a149acdfe608081d70d6 (patch) | |
tree | bcefb97998aaae6057d044eeb221ef043dc70192 /bootstrap | |
parent | ca8b248bd848aea92f8b7d8edfc308ef61d391f2 (diff) | |
download | pkgsrc-fe75aadcc46a8a9ddd95a149acdfe608081d70d6.tar.gz |
Set proper variables for the case of --compiler=clang.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 10 |
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} |