r10039: * BUGS: New file. Document suspected SIGPIPE
[clsql.git] / db-mysql / make.sh
index 24412b89615a6a6a5e5bed5960eede4e0c68b604..cb89204032d7407f679b84020f4dde7f45ec638b 100644 (file)
@@ -2,17 +2,17 @@
 
 case "`uname`" in
     Linux) os_linux=1 ;;
+    FreeBSD) os_freebsd=1 ;;
     Darwin) os_darwin=1 ;;
-    SunOs) os_sunos=1 ;;
+    SunOS) os_sunos=1 ;;
     AIX) os_aix=1 ;;
     *) echo "Unable to identify uname " `uname`
        exit 1 ;;       
 esac
     
-if [ "$os_linux" ]; then
+if [ "$os_linux" -o "$os_freebsd" ]; then
     gcc $CFLAGS -fPIC -c $SOURCE -o $OBJECT
     gcc -shared $OBJECT $LDFLAGS -o $SHARED_LIB
-
 elif [ "$os_darwin" ]; then
     cc $CFLAGS -dynamic -c $SOURCE -o $OBJECT
     ld -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress -o $BASE.dylib $OBJECT