>From 5bea67170e7c3aeafeda2538be4cbd827b45d24f Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Tue, 1 Sep 2015 12:37:29 +0200 Subject: [PATCH 3/3] BUILD: Simplify build of simple_access_tests Link test with existing libraries instead of building all necessary source file on more time. It's not portable to link with libsss_simple.so because it is a dynamic module and not dynamic library. *** Warning: Linking the executable simple_access-tests against the loadable module *** libsss_simple.so is not portable! --- Makefile.am | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/Makefile.am b/Makefile.am index eecf42704db8b542884ad245d12147bc3a7f755f..e52ed736f230442fe161ae29e4dc551a5c7ec231 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1648,29 +1648,15 @@ simple_access_tests_SOURCES = \ src/tests/simple_access-tests.c \ src/providers/simple/simple_access.c \ src/providers/simple/simple_access_check.c \ - src/providers/data_provider_be.c \ - src/providers/data_provider_fo.c \ - src/providers/data_provider_opts.c \ - src/providers/data_provider_callbacks.c \ - src/providers/dp_ptask.c \ - src/providers/dp_refresh.c \ - src/monitor/monitor_iface_generated.c \ - src/monitor/monitor_iface_generated.h \ - src/providers/data_provider_iface_generated.c \ - src/providers/data_provider_iface_generated.h \ - $(SSSD_FAILOVER_OBJ) -simple_access_tests_CFLAGS = \ - $(AM_CFLAGS) \ - $(CHECK_CFLAGS) \ - -DUNIT_TESTING + $(NULL) simple_access_tests_LDADD = \ $(LIBADD_DL) \ - $(SSSD_LIBS) \ - $(CARES_LIBS) \ $(CHECK_LIBS) \ - $(PAM_LIBS) \ + $(SSSD_LIBS) \ $(SSSD_INTERNAL_LTLIBS) \ - libsss_test_common.la + libsss_test_common.la \ + libdlopen_test_providers.la \ + $(NULL) util_tests_SOURCES = \ src/tests/util-tests.c \ -- 2.5.0