]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Makefile.am: add -ldl to unittest_pglog
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 5 Jun 2013 19:22:34 +0000 (12:22 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 5 Jun 2013 19:58:44 +0000 (12:58 -0700)
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 <josh.durgin@inktank.com>
src/Makefile.am

index 6d44e944f908f014f4f5e688542b8aea066f85cb..f146744ed91edc1dc87dbd0e0ed3aab48f0e0d0d 100644 (file)
@@ -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}