>From 45c5523fc5fda5c54f7fe7460254c338e8008fec Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 3 Dec 2014 14:06:18 +0100 Subject: [PATCH 1/2] MAKE: Fix linking of test_child_common Compilation of test_child_common failed with linker flag --as-needned due to cyclic dependencies between libsss_child.so and libsss_util.so CCLD test_child_common ./.libs/libsss_child.so: undefined reference to `sss_hash_create' ./.libs/libsss_child.so: undefined reference to `hash_lookup' ./.libs/libsss_child.so: undefined reference to `BlockSignals' ./.libs/libsss_child.so: undefined reference to `hash_delete' ./.libs/libsss_child.so: undefined reference to `hash_enter' ./.libs/libsss_child.so: undefined reference to `hash_error_string' ./.libs/libsss_child.so: undefined reference to `sss_atomic_io_s' ./.libs/libsss_child.so: undefined reference to `sss_strerror' collect2: error: ld returned 1 exit status This patch is temporary workaround. --- Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 4543e64eb9c51bbbc94d2b7150186e59756ca463..24ab21790cae0a87fa2ea075a23043b0cb70e308 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2144,6 +2144,11 @@ test_child_LDADD = \ test_child_common_SOURCES = \ src/tests/cmocka/test_child_common.c \ + src/util/child_common.c \ + src/util/signal.c \ + src/util/atomic_io.c \ + src/util/util_errors.c \ + src/util/util.c \ $(NULL) test_child_common_CFLAGS = \ $(AM_CFLAGS) \ @@ -2153,7 +2158,8 @@ test_child_common_LDADD = \ $(CMOCKA_LIBS) \ $(POPT_LIBS) \ $(TALLOC_LIBS) \ - $(SSSD_INTERNAL_LTLIBS) \ + $(DHASH_LIBS) \ + libsss_debug.la \ libsss_test_common.la \ $(NULL) -- 2.1.0