source: CMT/v1r12p20020606/mgr/cmt_make_cpp_shlib.sh @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 679 bytes
Line 
1#!/bin/sh -f
2
3#set -x
4
5lib=$1
6
7if test `uname` = "HP-UX" ; then
8  /bin/rm -f lib${lib}.sl
9 
10  objs=`ls *.o`
11  if test ! "$objs" = "" ; then
12    /bin/rm -f *.o
13  fi
14  ar x ../lib${lib}.a
15  ld -b -o lib${lib}.sl *.o $2 -lc
16  /bin/rm -f *.o
17fi
18
19if test `uname` = "OSF1" ; then
20  /bin/rm -f lib${lib}.so
21  ld -shared -o lib${lib}.so -all ../lib${lib}.a $2 -lc -rpath `dirs`
22  cxx -Wl,shared,all -o lib${lib}.so ../lib${lib}.a $2 -lc -rpath `dirs`
23fi
24
25if test `uname` = "SunOS" ; then
26#  objs=`ls *.o`
27#  if test ! "$objs" = "" ; then
28#    /bin/rm -f *.o
29#  endif
30#  ar x ../lib${lib}.a
31#  $CILINK -o lib${lib}.so *.o $2 -lc
32#  /bin/rm -f *.o
33fi
34
35
Note: See TracBrowser for help on using the repository browser.