diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2015-09-01 12:37:29 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-09-05 22:54:53 +0200 |
commit | af3a627a3ff5402aad02edc6d48576b3c69458e5 (patch) | |
tree | 2f117c0bb0d30b33143ca53f483a56d95a74122c | |
parent | 802909e59daa52c734dbe7f8fa13b0ee23e3e576 (diff) | |
download | sssd-af3a627a3ff5402aad02edc6d48576b3c69458e5.tar.gz sssd-af3a627a3ff5402aad02edc6d48576b3c69458e5.tar.xz sssd-af3a627a3ff5402aad02edc6d48576b3c69458e5.zip |
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!
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r-- | Makefile.am | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/Makefile.am b/Makefile.am index 2219cbdb3..851f943a4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1654,29 +1654,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 \ |