From 50d7d978d9584ae538c004fedf0dce57d0d9346c Mon Sep 17 00:00:00 2001 From: SATOH Fumiyasu Date: Thu, 5 Feb 2009 14:17:51 +0900 Subject: [PATCH] Solaris: nss_winbind.so with libthread.so breaks non-MT program See: https://bugzilla.samba.org/show_bug.cgi?id=5024 and see also: https://bugzilla.samba.org/show_bug.cgi?id=1822 libthread.so is not required for the thread-safe errno because ___errno() is in libc.so, not in libthread.so. $ uname -a SunOS blade8 5.8 Generic_117350-49 sun4u sparc SUNW,Sun-Blade-100 $ /usr/ccs/bin/nm /lib/libc.so |grep ___errno [4327] | 621164| 56|FUNC |GLOB |0 |9 |___errno $ /usr/ccs/bin/nm /lib/libthread.so |grep ___errno [1153] | 0| 0|FUNC |GLOB |0 |UNDEF |___errno --- source/configure.in | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/source/configure.in b/source/configure.in index 257d2ad..9c400d6 100644 --- a/source/configure.in +++ b/source/configure.in @@ -471,19 +471,16 @@ case "$host_os" in case "$ac_cv_gcc_compiler_version_number" in *"gcc version 2.6"*|*"gcc version 2.7"*) CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE -D_REENTRANT" - LDFLAGS="$LDFLAGS -lthread" AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support]) ;; *) CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64" - LDFLAGS="$LDFLAGS -lthread" AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support]) AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits]) ;; esac else CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64" - LDFLAGS="$LDFLAGS -lthread" AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support]) AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits]) fi -- 1.5.6.5