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