From 30733af9dbae104240fe0c39aaa682cd8663f365 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Wed, 5 Jun 2013 12:22:34 -0700 Subject: [PATCH] Makefile.am: add -ldl to unittest_pglog b70868e007ffa56e0eabf22b4ca836327c5f82d4 broke non-package builds on ubuntu and debian. This fixes the problem, and is required for anything compiling class_api.cc. Signed-off-by: Josh Durgin --- src/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 6d44e944f90..f146744ed91 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -744,6 +744,10 @@ unittest_pglog_CXXFLAGS = ${AM_CXXFLAGS} ${UNITTEST_CXXFLAGS} unittest_pglog_LDADD = libosd.a $(LIBOS_LDA) $(LIBGLOBAL_LDA) ${UNITTEST_LDADD} check_PROGRAMS += unittest_pglog +if LINUX +unittest_pglog_LDADD += -ldl +endif + unittest_gather_SOURCES = test/gather.cc unittest_gather_LDADD = ${LIBGLOBAL_LDA} ${UNITTEST_LDADD} unittest_gather_CXXFLAGS = ${AM_CXXFLAGS} ${UNITTEST_CXXFLAGS} -- 2.47.3