r1599: Use -Bsymbolic when creating shared libraries to avoid conflicts with
authorTim Potter <tpot@samba.org>
Wed, 28 Jul 2004 16:13:43 +0000 (16:13 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:16 +0000 (10:52 -0500)
identical symbols in the global namespace when loading libnss_wins.so.
Bugzilla #1360.

source/configure.in

index d6285ce2d55031a2b5b5f0348c80b567aa609f0e..4076f654ef8015d06c7b4e30e0f199eb11077c37 100644 (file)
@@ -1130,7 +1130,7 @@ if test "$enable_shared" = "yes"; then
   case "$host_os" in
                *linux*)   AC_DEFINE(LINUX,1,[Whether the host os is linux])
                        BLDSHARED="true"
-                       LDSHFLAGS="-shared" 
+                       LDSHFLAGS="-shared -Bsymbolic
                        DYNEXP="-Wl,--export-dynamic"
                        PICFLAGS="-fPIC"
                        SONAMEFLAG="-Wl,-soname="