From a7f8732d79cb6601d24f21a290ccdb070d94b51e Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Thu, 8 Dec 2016 18:44:41 -0600 Subject: [PATCH] Fix #182, add -lpthread to libheimbase as needed We should really check whether pthread_once() is in libc so that then we don't have to add an unnecessary dependency on -lpthread. Also, we have a proper once implementation that we could use when we don't have pthread_once(), so we should fallback on that if we detect that we have neither pthread_once() in libc and --disable-pthread is given. --- lib/base/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/base/Makefile.am b/lib/base/Makefile.am index 66e8bce72..ee5f120d3 100644 --- a/lib/base/Makefile.am +++ b/lib/base/Makefile.am @@ -24,6 +24,8 @@ if versionscript libheimbase_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map endif +libheimbase_la_LIBADD = $(PTHREAD_LIBADD) + include_HEADERS = heimbase.h dist_libheimbase_la_SOURCES = \