From fc7ddea8535f1a9c196bf30f7864414e4ac18b8a Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Tue, 4 Dec 2007 10:46:45 +0100 Subject: Use -Bsymbolic for linking all shared objects. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=10132 . Also remove comment about SONAME, as SONAME only applies to shared libraries. --- bin/mklib | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bin/mklib') diff --git a/bin/mklib b/bin/mklib index 2bfd1b9e04..7d271de118 100755 --- a/bin/mklib +++ b/bin/mklib @@ -208,8 +208,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. -- cgit v1.2.3