aboutsummaryrefslogtreecommitdiffstats
path: root/mklibs/mkslib.irix6.2-gcc
diff options
context:
space:
mode:
Diffstat (limited to 'mklibs/mkslib.irix6.2-gcc')
-rwxr-xr-xmklibs/mkslib.irix6.2-gcc66
1 files changed, 66 insertions, 0 deletions
diff --git a/mklibs/mkslib.irix6.2-gcc b/mklibs/mkslib.irix6.2-gcc
new file mode 100755
index 0000000..9514143
--- /dev/null
+++ b/mklibs/mkslib.irix6.2-gcc
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Make a Linux ELF shared library
+# Improved by Sven Goethel <[email protected]>
+# goal: same tool for any machines ...
+#
+
+# First argument is name of output library
+# without dirname and suffix
+# second and third are the major and minor number
+# Rest of arguments are object files
+
+LIBDIR=$1
+shift 1
+
+LIBRARY=$1
+shift 1
+
+LIBMAJOR=$1
+shift 1
+
+LIBMINOR=$1
+shift 1
+
+LIBBUGFIX=$1
+shift 1
+
+
+OBJECTS=$*
+
+# the following provided by Thomas Hiller ([email protected])
+
+VERSION="${LIBMAJOR}.${LIBMINOR}.${LIBBUGFIX}"
+
+LIBNAME=${LIBRARY}.so
+
+# Remove any old files from previous make
+rm -f ${LIBDIR}/${LIBNAME}*
+
+gcc -shared -Wl,-soname,${LIBNAME}.${LIBMAJOR} \
+ -o ${LIBDIR}/${LIBNAME}.${VERSION} \
+ ${OBJECTS}
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${VERSION} ${LIBNAME}.${LIBMAJOR}.${LIBMINOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR}.${LIBMINOR} ${LIBNAME}.${LIBMAJOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR} ${LIBNAME}
+)
+
+# Print a reminder about shared libs:
+echo
+echo "******Be sure to add" ${LIBDIR}" to your LD_LIBRARY_PATH variable"
+echo
+sleep 2
+
+
+
+#### NOTES:
+# One Mesa user reports having to run the "ldconfig -v" command to make
+# Linux aware of the shared libs.