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.
This commit is contained in:
Nicolas Williams
2016-12-08 18:44:41 -06:00
parent 3422afb291
commit a7f8732d79

View File

@@ -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 = \