mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
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
|
||||
|
||||
(
|
||||
echo "* Compiler version:"
|
||||
9c -v 2>&1 | grep -v 'Configured with:' | grep -i version | sed 's/^/ /'
|
||||
|
||||
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 "LDFLAGS='-L/usr/local/lib'" >> $PLAN9/config
|
||||
fi
|
||||
|
@ -147,6 +151,9 @@ if [ -f LOCAL.config ]; then
|
|||
cat LOCAL.config >>config
|
||||
fi
|
||||
|
||||
echo "* Compiler version:"
|
||||
9c -v 2>&1 | grep -v 'Configured with:' | grep -i version | sed 's/^/ /'
|
||||
|
||||
cd src
|
||||
if $dobuild; then
|
||||
if [ ! -x ../bin/mk ]; then
|
||||
|
|
Loading…
Reference in a new issue