From 77f380ae2e2a8bacd0d7ac5fbc11936cbc781d2d Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Fri, 7 Mar 2014 16:46:52 +0100 Subject: Makefile: Add missing library to the dp_opt_tests dp_opt_tests cannot be linked properly if link_all_deplibs is disabled (debian) /usr/bin/ld: src/tests/cmocka/dp_opt_tests-test_dp_opts.o: undefined reference to symbol 'poptFreeContext@@LIBPOPT_0' /usr/bin/ld: note: 'poptFreeContext@@LIBPOPT_0' is defined in DSO /lib64/libpopt.so.0 so try adding it to the linker command line /lib64/libpopt.so.0: could not read symbols: Invalid operation Reviewed-by: Jakub Hrozek (cherry picked from commit 5c36e1f8901a4baff2b51d81d87c2b577f84fef6) --- Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 0729d8d53..f2daac197 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1467,6 +1467,7 @@ dp_opt_tests_CFLAGS = \ dp_opt_tests_LDADD = \ $(CMOCKA_LIBS) \ $(TALLOC_LIBS) \ + $(POPT_LIBS) \ $(SSSD_INTERNAL_LTLIBS) \ libsss_test_common.la -- cgit