5 FreeBSD
) os_freebsd
=1 ;;
9 *) echo "Unable to identify uname " `uname`
13 if [ "$os_linux" -o "$os_freebsd" ]; then
14 gcc
-fPIC -DPIC -c $SOURCE -o $OBJECT
15 gcc
-shared $OBJECT -o $SHARED_LIB
16 elif [ "$os_darwin" ]; then
17 cc
-dynamic -c $SOURCE -o $OBJECT
18 ld
-bundle /usr
/lib
/bundle1.o
-flat_namespace -undefined suppress
-o $BASE.dylib
$OBJECT
19 ld
-bundle /usr
/lib
/bundle1.o
-flat_namespace -undefined suppress
/usr
/lib
/libz.dylib
-o z.dylib
21 elif [ "$os_sunos" ]; then
22 cc
-KPIC -c $SOURCE -o $OBJECT
23 cc
-G $OBJECT -o $SHARED_LIB
25 elif [ "$os_aix" ]; then
26 gcc
-c -D_BSD -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void
$SOURCE
27 make_shared
-o $SHARED_LIB $OBJECT