X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=uffi%2Fmake.sh;fp=uffi%2Fmake.sh;h=3b792ce781cbd9ba0ae388ff994cd531f08e6916;hb=614e68954c499aa0424c70245b4b33c8b5ba8687;hp=ba59d82321738481c46ba55e7e885b1bcc218bc1;hpb=a9f57540c378329f627b5b3bd2a2991689638331;p=clsql.git diff --git a/uffi/make.sh b/uffi/make.sh index ba59d82..3b792ce 100644 --- a/uffi/make.sh +++ b/uffi/make.sh @@ -2,6 +2,7 @@ case "`uname`" in Linux) os_linux=1 ;; + FreeBSD) os_freebsd=1 ;; Darwin) os_darwin=1 ;; SunOS) os_sunos=1 ;; AIX) os_aix=1 ;; @@ -9,10 +10,9 @@ case "`uname`" in 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 - elif [ "$os_darwin" ]; then cc -dynamic -c $SOURCE -o $OBJECT ld -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress -o $BASE.dylib $OBJECT