Skip to content

Commit

Permalink
BUILD: only link SYSTEMD_DAEMON_LIBS if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-tikhonov committed Apr 2, 2024
1 parent 0d5e8f1 commit 31a9a0b
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,10 @@ SSSD_LIBS = \
$(SELINUX_LIBS) \
$(TDB_LIBS)

if HAVE_SYSTEMD_UNIT
SSSD_LIBS += $(SYSTEMD_DAEMON_LIBS)
endif

PYTHON_BINDINGS_LIBS = \
$(TALLOC_LIBS) \
$(POPT_LIBS) \
Expand Down Expand Up @@ -1531,7 +1535,6 @@ sssd_LDADD = \
$(INOTIFY_LIBS) \
$(LIBNL_LIBS) \
$(KEYUTILS_LIBS) \
$(SYSTEMD_DAEMON_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
libsss_iface.la \
libsss_sbus.la \
Expand Down Expand Up @@ -1560,7 +1563,6 @@ sssd_nss_LDADD = \
$(SSSD_LIBS) \
libsss_idmap.la \
libsss_cert.la \
$(SYSTEMD_DAEMON_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
libsss_iface.la \
libsss_sbus.la \
Expand Down Expand Up @@ -1592,7 +1594,6 @@ sssd_pam_LDADD = \
$(SSSD_LIBS) \
$(SELINUX_LIBS) \
$(PAM_LIBS) \
$(SYSTEMD_DAEMON_LIBS) \
$(GSSAPI_KRB5_LIBS) \
libsss_certmap.la \
$(SSSD_INTERNAL_LTLIBS) \
Expand All @@ -1611,7 +1612,6 @@ sssd_sudo_SOURCES = \
sssd_sudo_LDADD = \
$(LIBADD_DL) \
$(SSSD_LIBS) \
$(SYSTEMD_DAEMON_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
libsss_iface.la \
libsss_sbus.la \
Expand All @@ -1626,7 +1626,6 @@ sssd_autofs_SOURCES = \
sssd_autofs_LDADD = \
$(LIBADD_DL) \
$(SSSD_LIBS) \
$(SYSTEMD_DAEMON_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
libsss_iface.la \
libsss_sbus.la \
Expand All @@ -1650,7 +1649,6 @@ sssd_ssh_LDADD = \
$(LIBADD_DL) \
$(SSSD_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
$(SYSTEMD_DAEMON_LIBS) \
libsss_cert.la \
libsss_certmap.la \
libsss_iface.la \
Expand All @@ -1672,7 +1670,6 @@ sssd_pac_LDADD = \
$(NDR_KRB5PAC_LIBS) \
$(TDB_LIBS) \
$(SSSD_LIBS) \
$(SYSTEMD_DAEMON_LIBS) \
libsss_idmap.la \
$(SSSD_INTERNAL_LTLIBS) \
libsss_iface.la \
Expand Down Expand Up @@ -1750,7 +1747,6 @@ sssd_ifp_CFLAGS = \
sssd_ifp_LDADD = \
$(LIBADD_DL) \
$(SSSD_LIBS) \
$(SYSTEMD_DAEMON_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
libsss_cert.la \
libifp_iface.la \
Expand Down Expand Up @@ -1820,7 +1816,6 @@ sssd_kcm_LDADD = \
$(KRB5_LIBS) \
$(SSSD_LIBS) \
$(UUID_LIBS) \
$(SYSTEMD_DAEMON_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
libsss_iface.la \
libsss_sbus.la \
Expand Down Expand Up @@ -2488,7 +2483,6 @@ responder_socket_access_tests_LDADD = \
$(CHECK_LIBS) \
$(SSSD_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
$(SYSTEMD_DAEMON_LIBS) \
libsss_test_common.la \
libsss_iface.la \
libsss_sbus.la \
Expand Down Expand Up @@ -2636,7 +2630,6 @@ nss_srv_tests_LDADD = \
$(CMOCKA_LIBS) \
$(SSSD_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
$(SYSTEMD_DAEMON_LIBS) \
libsss_test_common.la \
libsss_cert.la \
libsss_idmap.la \
Expand Down Expand Up @@ -2684,7 +2677,6 @@ pam_srv_tests_LDADD = \
$(PAM_LIBS) \
$(SSSD_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
$(SYSTEMD_DAEMON_LIBS) \
$(GSSAPI_KRB5_LIBS) \
libsss_test_common.la \
libsss_idmap.la \
Expand Down Expand Up @@ -2730,7 +2722,6 @@ ssh_srv_tests_LDADD = \
$(CMOCKA_LIBS) \
$(SSSD_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
$(SYSTEMD_DAEMON_LIBS) \
libsss_test_common.la \
libsss_iface.la \
libsss_sbus.la \
Expand All @@ -2754,7 +2745,6 @@ responder_get_domains_tests_LDADD = \
$(CMOCKA_LIBS) \
$(SSSD_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
$(SYSTEMD_DAEMON_LIBS) \
libsss_test_common.la \
libsss_iface.la \
libsss_sbus.la \
Expand Down Expand Up @@ -2816,7 +2806,6 @@ test_negcache_LDADD = \
$(LIBADD_DL) \
$(CMOCKA_LIBS) \
$(SSSD_LIBS) \
$(SYSTEMD_DAEMON_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
libsss_test_common.la \
libsss_idmap.la \
Expand Down Expand Up @@ -3216,7 +3205,6 @@ ifp_tests_LDADD = \
$(CMOCKA_LIBS) \
$(SSSD_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
$(SYSTEMD_DAEMON_LIBS) \
libsss_test_common.la \
libsss_iface.la \
libsss_sbus.la \
Expand Down Expand Up @@ -3459,7 +3447,6 @@ responder_cache_req_tests_LDADD = \
$(CMOCKA_LIBS) \
$(SSSD_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
$(SYSTEMD_DAEMON_LIBS) \
libsss_test_common.la \
libsss_iface.la \
libsss_sbus.la \
Expand Down

0 comments on commit 31a9a0b

Please sign in to comment.