From 9e2190b898558ee51745da7e8aeef9ca6b049986 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Jan 26 2017 13:14:18 +0000 Subject: BUILD: Fix linking of test_wbc_calls Client code does not anymore depend on libpthread in master. This is a reason why we didn't notice any linking failure in master. But the test should be linked with CLIENT_LIBS. CCLD test_wbc_calls /usr/bin/ld: src/sss_client/test_wbc_calls-common.o: undefined reference to symbol 'pthread_mutexattr_setrobust@@GLIBC_2.12' //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:12460: recipe for target 'test_wbc_calls' failed Reviewed-by: Fabiano FidĂȘncio (cherry picked from commit c369b062182c746849196e495db467198039edf4) --- diff --git a/Makefile.am b/Makefile.am index 3714b7d..4ae60c3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2679,6 +2679,7 @@ test_wbc_calls_LDFLAGS = \ -Wl,-wrap,sss_nss_getnamebysid \ $(NULL) test_wbc_calls_LDADD = \ + $(CLIENT_LIBS) \ $(CMOCKA_LIBS) \ $(POPT_LIBS) \ $(TALLOC_LIBS) \