X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=uffi%2Fmake.sh;h=746a86268e7d62cbaf32343cc590243a90a6042e;hp=03e7478138b9ae12e37131e6894314cf6155fd4a;hb=7a4e06f13e1668c9dbf0ce7f288c6d9347a34b81;hpb=ecd05e5b70c793cce2ce44f3bb4d4a7ecbc05153 diff --git a/uffi/make.sh b/uffi/make.sh index 03e7478..746a862 100644 --- a/uffi/make.sh +++ b/uffi/make.sh @@ -2,7 +2,10 @@ case "`uname`" in Linux) os_linux=1 ;; + GNU) os_linux=1 ;; FreeBSD) os_freebsd=1 ;; + NetBSD) os_netbsd=1 ;; + GNU/kFreeBSD) os_gnukfreebsd=1;; Darwin) os_darwin=1 ;; SunOS) os_sunos=1 ;; AIX) os_aix=1 ;; @@ -10,7 +13,7 @@ case "`uname`" in exit 1 ;; esac -if [ "$os_linux" -o "$os_freebsd" ]; then +if [ "$os_linux" -o "$os_freebsd" -o "$os_gnukfreebsd" -o "$os_netbsd" ]; then gcc -fPIC -DPIC -c $SOURCE -o $OBJECT ld -shared -soname=$BASE $LDFLAGS $OBJECT -o $SHARED_LIB elif [ "$os_darwin" ]; then