updates for GNU/Hurd (bug 6657)

This commit is contained in:
Brian Paul
2006-04-19 14:03:04 +00:00
parent 12ad488e59
commit 5beff7c6c1

View File

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