~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to install/unix/systems/Linux_AMD64/make_shared

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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