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 8ee8d8ce49d0e629fddbc88a53e011408c9b2118..e17e2fee0b10f8987ff8db3331d1df793c42e5c2 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.