]> git.saurik.com Git - wxWidgets.git/blame - src/gtk/setup/shared/sharedSunos4
Initial revision
[wxWidgets.git] / src / gtk / setup / shared / sharedSunos4
CommitLineData
c801d85f
KB
1#! /bin/sh
2
3#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
4COMPILER=$1
5LIBRARY_BASE=$2
6LIBRARY_MAJOR=$3
7LIBRARY_MINOR=$4
8shift 3
9LIBRARY_OBJS=
10while (test $# -ne 1) do
11 shift;
12 LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
13done
14
15LIBRARY_NAME=`basename $LIBRARY_BASE`
16LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
17
18echo "Creating shared library: $LIBRARY_FILE"
19
20if test "x$COMPILER" = xgcc ; then
21 gcc -shared -o $LIBRARY_FILE $LIBRARY_OBJS
22else
23 CC -assert pure-text -o $LIBRARY_FILE $LIBRARY_OBJS
24fi
25chmod a+x $LIBRARY_FILE
26rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
27ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
28rm -f $LIBRARY_BASE
29ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
30
31
32
33