X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=uffi%2Fmake.sh;h=746a86268e7d62cbaf32343cc590243a90a6042e;hp=843aa4793ee8cf7d51e2c2939b94391786f953af;hb=7a4e06f13e1668c9dbf0ce7f288c6d9347a34b81;hpb=162003a620fcbfabab5313887d0722f6168efd8c diff --git a/uffi/make.sh b/uffi/make.sh index 843aa47..746a862 100644 --- a/uffi/make.sh +++ b/uffi/make.sh @@ -4,6 +4,7 @@ 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 ;; @@ -12,7 +13,7 @@ case "`uname`" in exit 1 ;; esac -if [ "$os_linux" -o "$os_freebsd" -o "$os_gnukfreebsd" ]; 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