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:
@@ -24,6 +24,8 @@ if versionscript
|
|||||||
libheimbase_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
|
libheimbase_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
libheimbase_la_LIBADD = $(PTHREAD_LIBADD)
|
||||||
|
|
||||||
include_HEADERS = heimbase.h
|
include_HEADERS = heimbase.h
|
||||||
|
|
||||||
dist_libheimbase_la_SOURCES = \
|
dist_libheimbase_la_SOURCES = \
|
||||||
|
Reference in New Issue
Block a user