New Unix configure system
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
33
install/unix/setup/shared/sharedSunos4
Executable file
33
install/unix/setup/shared/sharedSunos4
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
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_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -assert pure-text -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user