updates for GNU/Hurd (bug 6657)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 19 Apr 2006 14:03:04 +0000 (14:03 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 19 Apr 2006 14:03:04 +0000 (14:03 +0000)
bin/mklib

index adc2b7f75f44a6d805ff2f5d0a0029557ead0625..0637662ff7c27e0256902f67a19a9b330a0696e0 100755 (executable)
--- a/bin/mklib
+++ b/bin/mklib
@@ -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