X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=uffi%2Fmake.sh;h=03e7478138b9ae12e37131e6894314cf6155fd4a;hb=ecd05e5b70c793cce2ce44f3bb4d4a7ecbc05153;hp=8bb895c3de52017f71999e21267a6a22c0b73686;hpb=4661cdbb26de93d072226ab6cd9325c1ca7bb75e;p=clsql.git diff --git a/uffi/make.sh b/uffi/make.sh index 8bb895c..03e7478 100644 --- a/uffi/make.sh +++ b/uffi/make.sh @@ -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 -fPIC -DPIC -c $SOURCE -o $OBJECT - gcc -shared $OBJECT -o $SHARED_LIB - + ld -shared -soname=$BASE $LDFLAGS $OBJECT -o $SHARED_LIB elif [ "$os_darwin" ]; then cc -dynamic -c $SOURCE -o $OBJECT ld -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress -o $BASE.dylib $OBJECT