wxWidgets/setup/shared/sharedDgux
Robert Roebling bcf1fa6bb4 Added wxAccelerators (sort of)
Moved configure (once again)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-09-02 22:23:57 +00:00

30 lines
528 B
Bash
Executable File

#! /bin/sh
COMPILER=$1
LIBRARY_BASE=$2
LIBRARY_MAJOR=$3
LIBRARY_MINOR=$4
shift 3
LIBRARY_OBJS=
while (test $# -ne 1) do
shift;
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
done
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sl/'`
LIBRARY_NAME=`basename $LIBRARY_BASE`
LIBRARY_FILE=$LIBRARY_BASE
echo "Creating shared library: $LIBRARY_FILE"
if test "x$COMPILER" = xgcc ; then
gcc -shared -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
else
CC -G -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
fi
chmod a+x $LIBRARY_FILE