]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk1/setup/shared/sharedIrix
2 # on Irix, position independent code is the default
4 #LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
11 while (test $# -ne 1) do
13 LIBRARY_OBJS
="$LIBRARY_OBJS $1";
16 LIBRARY_NAME
=`basename $LIBRARY_BASE`
17 LIBRARY_FILE
=$LIBRARY_BASE.
$LIBRARY_MAJOR.
$LIBRARY_MINOR
19 echo "Creating shared library: $LIBRARY_FILE"
21 if test ! -f /tmp
/so_locations
; then
22 if test -f /usr
/lib
/so_locations
; then
23 cp /usr
/lib
/so_locations
/tmp
25 touch /tmp
/so_locations
28 chmod u
+w
/tmp
/so_locations
30 if test "x$COMPILER" = xgcc
; then
31 gcc
-shared -Wl,-update_registry,/tmp
/so_locations \
32 -Wl,-soname,$LIBRARY_NAME.
$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
34 CC
-shared -update_registry /tmp
/so_locations \
35 -soname $LIBRARY_NAME.
$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
37 chmod a
+x
$LIBRARY_FILE
38 rm -f $LIBRARY_BASE.
$LIBRARY_MAJOR
39 ln -s $LIBRARY_NAME.
$LIBRARY_MAJOR.
$LIBRARY_MINOR $LIBRARY_BASE.
$LIBRARY_MAJOR
41 ln -s $LIBRARY_NAME.
$LIBRARY_MAJOR $LIBRARY_BASE