]> git.saurik.com Git - wxWidgets.git/blame - setup/shared/sharedIrix
New way to grey out disabled toolbar icons.
[wxWidgets.git] / setup / shared / sharedIrix
CommitLineData
bcf1fa6b
RR
1#! /bin/sh
2# on Irix, position independent code is the default
3
4#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
5COMPILER=$1
6LIBRARY_BASE=$2
7LIBRARY_MAJOR=$3
8LIBRARY_MINOR=$4
9shift 3
10LIBRARY_OBJS=
11while (test $# -ne 1) do
12 shift;
13 LIBRARY_OBJS="$LIBRARY_OBJS $1";
14done
15
16LIBRARY_NAME=`basename $LIBRARY_BASE`
17LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
18
19echo "Creating shared library: $LIBRARY_FILE"
20
21if test ! -f /tmp/so_locations; then
22 if test -f /usr/lib/so_locations; then
23 cp /usr/lib/so_locations /tmp
24 else
25 touch /tmp/so_locations
26 fi
27fi
28chmod u+w /tmp/so_locations
29
30if test "x$COMPILER" = xgcc ; then
31 gcc -shared -Wl,-update_registry,/tmp/so_locations \
32 -Wl,-soname,$LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
33else
34 CC -shared -update_registry /tmp/so_locations \
35 -soname $LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
36fi
37chmod a+x $LIBRARY_FILE
38rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
39ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
40rm -f $LIBRARY_BASE
41ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
42
43
44
45