]> git.saurik.com Git - wxWidgets.git/blame - src/gtk1/setup/shared/sharedAIX
Quick fix to avoid unnecessary compiler warnings from duplicate __WXDEBUG__ defines.
[wxWidgets.git] / src / gtk1 / setup / shared / sharedAIX
CommitLineData
c801d85f
KB
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/.sa/'`
15LIBRARY_NAME=`basename $LIBRARY_BASE`
16LIBRARY_FILE=$LIBRARY_BASE
17
18echo "Creating shared library: $LIBRARY_FILE"
19
20ar cr $LIBRARY_FILE~ $LIBRARY_OBJS
21nm $LIBRARY_OBJS | awk '/ [BD] /{print $$3}' | sort | uniq > ${LIBRARY_FILE}.syms
22ld -o shr.o $LIBRARY_FILE~ -lX11 -lXt -lc -lm -H512 -T512 -bE:${LIBRARY_FILE}.syms -bM:SRE
23rm -f $LIBRARY_FILE~
24ar ruv $LIBRARY_FILE shr.o
25chmod a+x $LIBRARY_FILE
26