#!/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
#cc -no-cpp-precomp -dynamic  -o $*
libtool -o  $*
rm -f $library.so
ln -s $1 $library.so 
