pull in minor mklib change to fix debugging
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 4 Jun 2008 19:48:04 +0000 (20:48 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 5 Jun 2008 09:05:37 +0000 (10:05 +0100)
bin/mklib

index 8ee8d8c..e17e2fe 100755 (executable)
--- a/bin/mklib
+++ b/bin/mklib
@@ -202,8 +202,13 @@ case $ARCH in
        if [ $NOPREFIX = 1 ] ; then
            # No "lib" or ".so" part
            echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}
-           #OPTS="-shared -Wl,-soname,${LIBNAME}"  # soname???
-           OPTS="-shared"
+           case $ARCH in 'Linux' | 'GNU' | GNU/*)
+               OPTS="-Xlinker -Bsymbolic -shared"
+           ;;
+           *)
+               OPTS="-shared"
+           ;;
+           esac
 
            # Check if objects are 32-bit and we're running in 64-bit
            # environment.  If so, pass -m32 flag to linker.