]> git.saurik.com Git - wxWidgets.git/blob - setup/shared/sharedAIX
TreeCtrl indentation and spacing
[wxWidgets.git] / setup / shared / sharedAIX
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/.sa/'`
15 LIBRARY_NAME=`basename $LIBRARY_BASE`
16 LIBRARY_FILE=$LIBRARY_BASE
17
18 echo "Creating shared library: $LIBRARY_FILE"
19
20 ar cr $LIBRARY_FILE~ $LIBRARY_OBJS
21 nm $LIBRARY_OBJS | awk '/ [BD] /{print $$3}' | sort | uniq > ${LIBRARY_FILE}.syms
22 ld -o shr.o $LIBRARY_FILE~ -lX11 -lXt -lc -lm -H512 -T512 -bE:${LIBRARY_FILE}.syms -bM:SRE
23 rm -f $LIBRARY_FILE~
24 ar ruv $LIBRARY_FILE shr.o
25 chmod a+x $LIBRARY_FILE
26