diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-12-04 10:46:45 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-12-04 18:31:29 +0100 |
commit | fc7ddea8535f1a9c196bf30f7864414e4ac18b8a (patch) | |
tree | 8000a53539ea291e35996db42cece0e3b6f6adc5 /bin/mklib | |
parent | 3a90679400e50fb5d319deee51e03a298735aa17 (diff) |
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.
Diffstat (limited to 'bin/mklib')
-rwxr-xr-x | bin/mklib | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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. |