Browse Source

updates for GNU/Hurd (bug 6657)

tags/mesa-6_5-20060712
Brian Paul 19 years ago
parent
commit
5beff7c6c1
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      bin/mklib

+ 6
- 4
bin/mklib View File

@@ -180,7 +180,7 @@ fi
#
case $ARCH in

'Linux' | 'OpenBSD')
'Linux' | 'OpenBSD' | 'GNU' | GNU/*)
# we assume gcc

if [ "x$LINK" = "x" ] ; then
@@ -223,11 +223,13 @@ case $ARCH in
FINAL_LIBS=${LIBNAME}.a
else
LIBNAME="lib${LIBNAME}" # prefix with "lib"
if [ $ARCH = 'Linux' ] ; then
case $ARCH in 'Linux' | 'GNU' | GNU/*)
OPTS="-Xlinker -Bsymbolic -shared -Wl,-soname,${LIBNAME}.so.${MAJOR}"
else
;;
*)
OPTS="-shared -Wl,-soname,${LIBNAME}.so.${MAJOR}"
fi
;;
esac
if [ $EXPORTS ] ; then
#OPTS="${OPTS} -Xlinker --retain-symbols-file ${EXPORTS}"
# Make the 'exptmp' file for --version-script option

Loading…
Cancel
Save