#!/bin/sh
shift
library=`basename $1 | sed 's/\.so\..*$//'`
#
# For FreeBSD : Similar to Linux except the removal of 
# -Wl,-soname,$library$sh_ext passed to gcc
gcc -shared -fPIC -o $*
rm -f $library.so
ln -s $1 $library.so 
