From: Keith Whitwell Date: Wed, 4 Jun 2008 19:48:04 +0000 (+0100) Subject: pull in minor mklib change to fix debugging X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da7b3d294b2827f26bdb6dcbe7c123e77865c160;p=mesa.git pull in minor mklib change to fix debugging --- diff --git a/bin/mklib b/bin/mklib index 8ee8d8ce49d..e17e2fee0b1 100755 --- 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.