summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPete Zaitcev <zaitcev@kotori.zaitcev.us>2015-03-30 20:00:24 -0600
committerPete Zaitcev <zaitcev@kotori.zaitcev.us>2015-03-30 20:00:24 -0600
commit64d87a90642567001caa4401acfef5ca8aba216e (patch)
treed1cda4f170cbd9b218321268058320e2d1115ac7 /test
parent0d1e4136aebcef230be62374a002e2e05a46237e (diff)
downloadliberasurecode-64d87a90642567001caa4401acfef5ca8aba216e.tar.gz
Fix building with --disable-static
Fedora packaging rules require ./configure --disable-static. However, that ends with: ../src/.libs/liberasurecode.so: undefined reference to `dlopen' The fix is to add a missing -ldl into flags of test_xor_hd_code.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 3e9c85f..f625ec9 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -5,7 +5,7 @@ test_xor_hd_code_SOURCES = \
builtin/xor_codes/test_xor_hd_code.c \
builtin/xor_codes/test_xor_hd_code.h
test_xor_hd_code_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/erasurecode -I$(top_srcdir)/include/xor_codes @GCOV_FLAGS@
-test_xor_hd_code_LDFLAGS = @GCOV_LDFLAGS@ -static-libtool-libs $(top_srcdir)/src/liberasurecode.la $(top_srcdir)/src/builtin/xor_codes/libXorcode.la
+test_xor_hd_code_LDFLAGS = @GCOV_LDFLAGS@ -static-libtool-libs $(top_srcdir)/src/liberasurecode.la $(top_srcdir)/src/builtin/xor_codes/libXorcode.la -ldl
check_PROGRAMS = test_xor_hd_code
alg_sig_test_SOURCES = utils/chksum/test_alg_sig.c