INSTALL: fix compiler detection on FreeBSD+clang (#177)
This commit is contained in:
parent
000c1a3b19
commit
9c38253d1d
1 changed files with 24 additions and 17 deletions
13
INSTALL
13
INSTALL
|
|
@ -42,10 +42,14 @@ echo "* Resetting $PLAN9/config"
|
||||||
rm -f config
|
rm -f config
|
||||||
|
|
||||||
(
|
(
|
||||||
echo "* Compiler version:"
|
|
||||||
9c -v 2>&1 | grep -v 'Configured with:' | grep -i version | sed 's/^/ /'
|
|
||||||
|
|
||||||
if [ `uname` = FreeBSD ]; then
|
if [ `uname` = FreeBSD ]; then
|
||||||
|
case `cc -v 2>&1` in
|
||||||
|
*clang*)
|
||||||
|
echo "CC9=clang" >> $PLAN9/config
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
echo "* Running on FreeBSD, adjusting linker flags"
|
echo "* Running on FreeBSD, adjusting linker flags"
|
||||||
echo "LDFLAGS='-L/usr/local/lib'" >> $PLAN9/config
|
echo "LDFLAGS='-L/usr/local/lib'" >> $PLAN9/config
|
||||||
fi
|
fi
|
||||||
|
|
@ -147,6 +151,9 @@ if [ -f LOCAL.config ]; then
|
||||||
cat LOCAL.config >>config
|
cat LOCAL.config >>config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "* Compiler version:"
|
||||||
|
9c -v 2>&1 | grep -v 'Configured with:' | grep -i version | sed 's/^/ /'
|
||||||
|
|
||||||
cd src
|
cd src
|
||||||
if $dobuild; then
|
if $dobuild; then
|
||||||
if [ ! -x ../bin/mk ]; then
|
if [ ! -x ../bin/mk ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue