Debian Codegraph @

install/unix/systems/Linux_alpha/make_shared

raw symbols SCIP
1 #!/bin/sh
2 shift
3 library=`basename $1 | sed 's/\.so\..*$//'`
4 #
5 # For Linux 1.2.13
6 #sh_ext=`basename $1 | sed 's/lib.*\.so\.\(.\)\..*$/\.so\.\1/'`
7 #gcc -shared -Wl,-soname,$library$sh_ext -o $*
8 #
9 # For Linux 2.0.0
10 gcc -shared -Wl,-soname,$1 -o $*
11 rm -f $library.so
12 ln -s $1 $library.so