aboutsummaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorMartin Neubauer <m.ne@gmx.net>2013-01-30 17:45:28 -0800
committerRuss Cox <rsc@swtch.com>2013-01-30 17:45:28 -0800
commitdad9d0ac8faf5482c0305a1da7356b1b1982c0a0 (patch)
tree795ae2cc0532dfaaa78919112ab35c1290fda707 /INSTALL
parent0497ad9724e9b2bf60191dd1d54876aaa9e568a3 (diff)
downloadplan9port-dad9d0ac8faf5482c0305a1da7356b1b1982c0a0.tar.gz
plan9port-dad9d0ac8faf5482c0305a1da7356b1b1982c0a0.tar.bz2
plan9port-dad9d0ac8faf5482c0305a1da7356b1b1982c0a0.zip
fontserv: fix build on FreeBSD 9.1
R=rsc https://codereview.appspot.com/7095050
Diffstat (limited to 'INSTALL')
-rwxr-xr-xINSTALL7
1 files changed, 6 insertions, 1 deletions
diff --git a/INSTALL b/INSTALL
index a0e208ee..8bc208b1 100755
--- a/INSTALL
+++ b/INSTALL
@@ -45,6 +45,11 @@ rm -f config
echo "* Compiler version:"
9c -v 2>&1 | grep -v 'Configured with:' | grep -i version | sed 's/^/ /'
+if [ `uname` = FreeBSD ]; then
+ echo "* Running on FreeBSD, adjusting linker flags"
+ echo "LDFLAGS='-L/usr/local/lib'" >> $PLAN9/config
+fi
+
if [ `uname` = OpenBSD ]; then
echo "* Running on OpenBSD, adjusting linker flags"
echo "LDFLAGS='-L/usr/X11R6/lib -pthread'" >> $PLAN9/config
@@ -92,7 +97,7 @@ fi
if [ `uname` != Darwin ]; then
# Determine whether fontsrv X11 files are available.
rm -f a.out
- gcc -o a.out -c -Iinclude -I/usr/include -I/usr/include/freetype2 src/cmd/fontsrv/x11.c >/dev/null 2>&1
+ gcc -o a.out -c -Iinclude -I/usr/include -I/usr/local/include -I/usr/include/freetype2 -I/usr/local/include/freetype2 src/cmd/fontsrv/x11.c >/dev/null 2>&1
if [ -f a.out ]; then
echo " fontsrv dependencies found."
echo "FONTSRV=fontsrv" >>$PLAN9/config