r10899: Automated commit for Debian build of clsql upstream-version-3.5.5
[clsql.git] / uffi / make.sh
index 03e7478138b9ae12e37131e6894314cf6155fd4a..843aa4793ee8cf7d51e2c2939b94391786f953af 100644 (file)
@@ -2,7 +2,9 @@
 
 case "`uname`" in
     Linux) os_linux=1 ;;
+    GNU) os_linux=1 ;;
     FreeBSD) os_freebsd=1 ;;
+    GNU/kFreeBSD) os_gnukfreebsd=1;;
     Darwin) os_darwin=1 ;;
     SunOS) os_sunos=1 ;;
     AIX) os_aix=1 ;;
@@ -10,7 +12,7 @@ case "`uname`" in
        exit 1 ;;       
 esac
     
-if [ "$os_linux" -o "$os_freebsd" ]; then
+if [ "$os_linux" -o "$os_freebsd" -o "$os_gnukfreebsd" ]; then
     gcc -fPIC -DPIC -c $SOURCE -o $OBJECT
     ld -shared -soname=$BASE $LDFLAGS $OBJECT -o $SHARED_LIB
 elif [ "$os_darwin" ]; then