X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=uffi%2Fmake.sh;h=746a86268e7d62cbaf32343cc590243a90a6042e;hb=e8c000a120f978e464441838fe1576e6afc94d9d;hp=6b353743f37f4cb19cc26dad0b23dee855055ae8;hpb=27887d97fcf2dd02c1629c5189233a8cfc569851;p=clsql.git diff --git a/uffi/make.sh b/uffi/make.sh index 6b35374..746a862 100644 --- a/uffi/make.sh +++ b/uffi/make.sh @@ -2,7 +2,9 @@ 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 ;; @@ -11,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