>From dda1510867d97d347b884650d6b86c784c84dd91 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Fri, 7 Mar 2014 16:46:52 +0100 Subject: [PATCH] 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 --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index fba14e49e653895020c67763145c9663091e9937..750f626d17240a33e89a0b28c0ca5a6e2536c1cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1632,6 +1632,7 @@ dp_opt_tests_CFLAGS = \ dp_opt_tests_LDADD = \ $(CMOCKA_LIBS) \ $(TALLOC_LIBS) \ + $(POPT_LIBS) \ $(SSSD_INTERNAL_LTLIBS) \ libsss_test_common.la -- 1.8.5.3