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