Mercurial > hg > quicktun
comparison build.sh @ 57:4c083d81f5a8
Fixes for OpenBSD (thanks to Pi <pi-quicktun@mrtheplague.net> and SeekingFor)
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Fri, 31 Jan 2014 23:58:53 +0100 |
parents | 377e7d4fbc10 |
children | fa53d1c54886 |
comparison
equal
deleted
inserted
replaced
56:377e7d4fbc10 | 57:4c083d81f5a8 |
---|---|
5 cc="cc" | 5 cc="cc" |
6 | 6 |
7 if [ "$(uname -s)" = "OpenBSD" -o "$(uname -s)" = "FreeBSD" -o "$(uname -s)" = "NetBSD" ]; then | 7 if [ "$(uname -s)" = "OpenBSD" -o "$(uname -s)" = "FreeBSD" -o "$(uname -s)" = "NetBSD" ]; then |
8 echo "Detected *BSD" | 8 echo "Detected *BSD" |
9 tar="gtar" | 9 tar="gtar" |
10 export CPATH="/usr/local/include:${CPATH}" | |
10 elif [ "$(uname -s)" = "SunOS" ]; then | 11 elif [ "$(uname -s)" = "SunOS" ]; then |
11 echo "Detected SunOS" | 12 echo "Detected SunOS" |
12 tar="gtar" | 13 tar="gtar" |
13 CFLAGS="$CFLAGS -DSOLARIS -m64" | 14 CFLAGS="$CFLAGS -DSOLARIS -m64" |
14 LDFLAGS="$LDFLAGS -lnsl -lsocket" | 15 LDFLAGS="$LDFLAGS -lnsl -lsocket" |