summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-02-24 15:12:05 -0700
committerRich Megginson <rmeggins@redhat.com>2010-02-25 10:14:47 -0700
commit1ce1a045b77d2726ab1cb52a3e5ad943976d0fa8 (patch)
tree983a3f93cf12fc01e2fa2525bdc74179656ec598 /configure.ac
parent43894ffddf76baa4824c93d702ad4712e82b5b4e (diff)
downloadds-1ce1a045b77d2726ab1cb52a3e5ad943976d0fa8.tar.gz
ds-1ce1a045b77d2726ab1cb52a3e5ad943976d0fa8.tar.xz
ds-1ce1a045b77d2726ab1cb52a3e5ad943976d0fa8.zip
fix dso linking issues found by fedora 13 linking
https://bugzilla.redhat.com/show_bug.cgi?id=564876 Resolves: Bug 564876 Bug Description: FTBFS 389-ds-base-1.2.6-0.1.a1.fc13: ImplicitDSOLinking There are several programs that use pthread but do not link against it explicitly. We need to link against pthread explicitly. Reviewed by: nhosoi (Thanks!)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3d18c4a6..f8ec7299 100644
--- a/configure.ac
+++ b/configure.ac
@@ -347,6 +347,9 @@ case $host in
AC_CHECK_DECLS([__sync_add_and_fetch])
;;
esac
+ # some programs use the native thread library directly
+ THREADLIB=-lpthread
+ AC_SUBST([THREADLIB], [$THREADLIB])
;;
ia64-hp-hpux*)
AC_DEFINE([XP_UNIX], [1], [UNIX])