diff options
author | obache <obache> | 2013-02-20 10:30:41 +0000 |
---|---|---|
committer | obache <obache> | 2013-02-20 10:30:41 +0000 |
commit | a76a3362199f42d0a18a9f8b49a24d0727ba78a8 (patch) | |
tree | bcefb97998aaae6057d044eeb221ef043dc70192 /bootstrap | |
parent | 332ef66755739b99af2df177e377e16174a625f7 (diff) | |
download | pkgsrc-a76a3362199f42d0a18a9f8b49a24d0727ba78a8.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} |