comparison build.sh @ 18:c9fba5007577

Merged commit from dereckson: Fixing linuxisms
author Ivo Smits <Ivo@UCIS.nl>
date Sun, 27 Feb 2011 20:55:05 +0100
parents 8f564c559416 d621348448de
children 3400045a57b8
comparison
equal deleted inserted replaced
16:8f564c559416 18:c9fba5007577
1 #!/bin/sh 1 #!/bin/sh
2 2
3 if [ `uname -s` == "OpenBSD" -o `uname -s` == "FreeBSD" ]; then 3 if [ "$(uname -s)" = "OpenBSD" -o "$(uname -s)" = "FreeBSD" ]; then
4 echo "Detected *BSD" 4 echo "Detected *BSD"
5 tar="gtar" 5 tar="gtar"
6 elif [ `uname -s` == "SunOS" ]; then 6 elif [ "$(uname -s)" = "SunOS" ]; then
7 echo "Detected SunOS" 7 echo "Detected SunOS"
8 tar="gtar" 8 tar="gtar"
9 CFLAGS="$CFLAGS -DSOLARIS -m64" 9 CFLAGS="$CFLAGS -DSOLARIS -m64"
10 LDFLAGS="$LDFLAGS -lnsl -lsocket" 10 LDFLAGS="$LDFLAGS -lnsl -lsocket"
11 else 11 else