summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2004-10-11 05:07:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:56 -0500
commitce873b76c89557a197b966b883aeb6958972d030 (patch)
treee4e2881038ae38046375e646ecab32ec4732977d /source3
parent8f49721fef2dfa66ac13ec7b860a3315019240da (diff)
downloadsamba-ce873b76c89557a197b966b883aeb6958972d030.tar.gz
samba-ce873b76c89557a197b966b883aeb6958972d030.tar.bz2
samba-ce873b76c89557a197b966b883aeb6958972d030.zip
r2905: Apply the patch for bug #1822. Add -D_REENTRANT to CPPFLAGS and -lthread
to LDFLAGS. Patch supplied by Sean McGrath ... (This used to be commit d704272b0a27c51dbe9c5c5f04134ce559bea2c4)
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 6356e1d1c3..6a36fbcdea 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -471,17 +471,20 @@ case "$host_os" in
rm -fr conftest.c
case "$ac_cv_gcc_compiler_version_number" in
*"gcc version 2.6"*|*"gcc version 2.7"*)
- CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
+ 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_FILE_OFFSET_BITS=64"
+ 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_FILE_OFFSET_BITS=64"
+ 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