]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk/setup/shared/sharedLinux
3 #LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
10 while (test $# -ne 1) do
12 LIBRARY_OBJS
="$LIBRARY_OBJS $1sh";
15 LIBRARY_NAME
=`basename $LIBRARY_BASE`
16 LIBRARY_FILE
=$LIBRARY_BASE.
$LIBRARY_MAJOR.
$LIBRARY_MINOR
18 echo "Creating shared library: $LIBRARY_FILE"
20 case $COMPILER in gcc
*|*gcc
)
21 $COMPILER -shared -Wl,-soname,$LIBRARY_NAME.
$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
24 $COMPILER -shared -soname $LIBRARY_NAME.
$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
26 chmod a
+x
$LIBRARY_FILE
27 rm -f $LIBRARY_BASE.
$LIBRARY_MAJOR
28 ln -s $LIBRARY_NAME.
$LIBRARY_MAJOR.
$LIBRARY_MINOR $LIBRARY_BASE.
$LIBRARY_MAJOR
30 ln -s $LIBRARY_NAME.
$LIBRARY_MAJOR $LIBRARY_BASE