From e5d8b0e10238490c5d199063c0a258ba53c2ac65 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Feb 08 2017 20:19:40 +0000 Subject: BUILD: Fix linking of test_sdap_initgr There was a linking fialure on debian: /usr/bin/ld: src/tests/cmocka/test_sdap_initgr-test_sdap_initgr.o: undefined reference to symbol 'hash_iterate@@DHASH_0.4.3' //usr/lib64/libdhash.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status This patch adds some missing libraries and remove unnecessary libraries. Bug was intoduced in commit 0b7ded15e53b3f31f1570c366f04bc41e5761929 Reviewed-by: Michal Židek --- diff --git a/Makefile.am b/Makefile.am index 713a83c..2304b39 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2879,11 +2879,12 @@ test_sdap_initgr_CFLAGS = \ test_sdap_initgr_LDADD = \ $(CMOCKA_LIBS) \ $(POPT_LIBS) \ + $(DHASH_LIBS) \ $(TALLOC_LIBS) \ + $(TEVENT_LIBS) \ + $(LDB_LIBS) \ $(SSSD_INTERNAL_LTLIBS) \ libsss_ldap_common.la \ - libsss_ad_tests.la \ - libsss_idmap.la \ libsss_test_common.la \ libdlopen_test_providers.la \ $(NULL)