X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=uffi%2Fmake.sh;h=843aa4793ee8cf7d51e2c2939b94391786f953af;hb=162003a620fcbfabab5313887d0722f6168efd8c;hp=8bb895c3de52017f71999e21267a6a22c0b73686;hpb=4661cdbb26de93d072226ab6cd9325c1ca7bb75e;p=clsql.git diff --git a/uffi/make.sh b/uffi/make.sh index 8bb895c..843aa47 100644 --- a/uffi/make.sh +++ b/uffi/make.sh @@ -2,17 +2,19 @@ case "`uname`" in Linux) os_linux=1 ;; + GNU) os_linux=1 ;; + FreeBSD) os_freebsd=1 ;; + GNU/kFreeBSD) os_gnukfreebsd=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" -o "$os_gnukfreebsd" ]; 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