Make libabigail link with pthread

Since libabigail now uses pthreads via the abigail::workers namespace,
the libabigail shared library should link with pthreads.  Many to
Michi Henning for raising this.

	* src/Makefile.am: Add -pthread to libabigail_la_LDFLAGS.
	* tools/Makefile.am: Do not use abinilint_LDFLAGS when it should
	be abinilint_LDADD.  This one was fixed by Michi Henning.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2016-02-24 23:07:28 +01:00
parent f48c0ef201
commit 12d56c861b
2 changed files with 2 additions and 3 deletions

View File

@ -30,7 +30,6 @@ abg-tools-utils.cc \
$(CXX11_SOURCES)
libabigail_la_LIBADD = $(DEPS_LIBS)
libabigail_la_LDFLAGS = -Wl,--as-needed -no-undefined
libabigail_la_LDFLAGS = -pthread -Wl,--as-needed -no-undefined
AM_CPPFLAGS=$(DEPS_CPPFLAGS) -Wall -I$(abs_top_srcdir)/include -I$(abs_top_builddir)/include -I$(abs_top_builddir)

View File

@ -32,7 +32,7 @@ abisym_LDADD = ../src/libabigail.la
abinilint_SOURCES = binilint.cc
abinilintdir = $(bindir)
abinilint_LDFLAGS = $(abs_top_builddir)/src/libabigail.la
abinilint_LDADD = $(abs_top_builddir)/src/libabigail.la
abicompat_SOURCES = abicompat.cc
abicompatdir = $(bindir)