mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 15:21:37 +03:00
Merge pull request #187 from kaysievers/libcleanup
build-sys: simplify lib dependencies
This commit is contained in:
commit
d11a6028e3
108
Makefile.am
108
Makefile.am
@ -905,6 +905,8 @@ libbasic_la_CFLAGS = \
|
|||||||
libbasic_la_LIBADD = \
|
libbasic_la_LIBADD = \
|
||||||
$(SELINUX_LIBS) \
|
$(SELINUX_LIBS) \
|
||||||
$(CAP_LIBS) \
|
$(CAP_LIBS) \
|
||||||
|
-ldl \
|
||||||
|
-lrt \
|
||||||
-lm
|
-lm
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
@ -1012,21 +1014,16 @@ endif
|
|||||||
|
|
||||||
libshared_la_CFLAGS = \
|
libshared_la_CFLAGS = \
|
||||||
$(AM_CFLAGS) \
|
$(AM_CFLAGS) \
|
||||||
$(SELINUX_CFLAGS) \
|
|
||||||
$(CAP_CFLAGS) \
|
|
||||||
$(ACL_CFLAGS) \
|
$(ACL_CFLAGS) \
|
||||||
$(SECCOMP_CFLAGS) \
|
$(LIBIDN_CFLAGS) \
|
||||||
-pthread
|
$(SECCOMP_CFLAGS)
|
||||||
|
|
||||||
libshared_la_LIBADD = \
|
libshared_la_LIBADD = \
|
||||||
libsystemd-internal.la \
|
libsystemd-internal.la \
|
||||||
libsystemd-journal-internal.la \
|
libsystemd-journal-internal.la \
|
||||||
$(SELINUX_LIBS) \
|
|
||||||
$(CAP_LIBS) \
|
|
||||||
$(ACL_LIBS) \
|
$(ACL_LIBS) \
|
||||||
$(LIBIDN_LIBS) \
|
$(LIBIDN_LIBS) \
|
||||||
$(SECCOMP_LIBS) \
|
$(SECCOMP_LIBS)
|
||||||
-lm
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
if HAVE_LIBIPTC
|
if HAVE_LIBIPTC
|
||||||
@ -1190,8 +1187,7 @@ libcore_la_CFLAGS = \
|
|||||||
$(AUDIT_CFLAGS) \
|
$(AUDIT_CFLAGS) \
|
||||||
$(KMOD_CFLAGS) \
|
$(KMOD_CFLAGS) \
|
||||||
$(APPARMOR_CFLAGS) \
|
$(APPARMOR_CFLAGS) \
|
||||||
$(MOUNT_CFLAGS) \
|
$(MOUNT_CFLAGS)
|
||||||
-pthread
|
|
||||||
|
|
||||||
libcore_la_LIBADD = \
|
libcore_la_LIBADD = \
|
||||||
libudev-internal.la \
|
libudev-internal.la \
|
||||||
@ -1321,8 +1317,7 @@ systemd_SOURCES = \
|
|||||||
src/core/main.c
|
src/core/main.c
|
||||||
|
|
||||||
systemd_LDADD = \
|
systemd_LDADD = \
|
||||||
libcore.la \
|
libcore.la
|
||||||
$(RT_LIBS)
|
|
||||||
|
|
||||||
dist_pkgsysconf_DATA += \
|
dist_pkgsysconf_DATA += \
|
||||||
src/core/system.conf \
|
src/core/system.conf \
|
||||||
@ -1525,8 +1520,7 @@ test_engine_CFLAGS = \
|
|||||||
$(SECCOMP_CFLAGS)
|
$(SECCOMP_CFLAGS)
|
||||||
|
|
||||||
test_engine_LDADD = \
|
test_engine_LDADD = \
|
||||||
libcore.la \
|
libcore.la
|
||||||
$(RT_LIBS)
|
|
||||||
|
|
||||||
test_job_type_SOURCES = \
|
test_job_type_SOURCES = \
|
||||||
src/test/test-job-type.c
|
src/test/test-job-type.c
|
||||||
@ -1536,8 +1530,7 @@ test_job_type_CFLAGS = \
|
|||||||
$(SECCOMP_CFLAGS)
|
$(SECCOMP_CFLAGS)
|
||||||
|
|
||||||
test_job_type_LDADD = \
|
test_job_type_LDADD = \
|
||||||
libcore.la \
|
libcore.la
|
||||||
$(RT_LIBS)
|
|
||||||
|
|
||||||
test_ns_SOURCES = \
|
test_ns_SOURCES = \
|
||||||
src/test/test-ns.c
|
src/test/test-ns.c
|
||||||
@ -1566,8 +1559,7 @@ test_dns_domain_SOURCES = \
|
|||||||
|
|
||||||
test_dns_domain_LDADD = \
|
test_dns_domain_LDADD = \
|
||||||
libsystemd-network.la \
|
libsystemd-network.la \
|
||||||
libshared.la \
|
libshared.la
|
||||||
$(LIBIDN_LIBS)
|
|
||||||
|
|
||||||
if ENABLE_EFI
|
if ENABLE_EFI
|
||||||
manual_tests += \
|
manual_tests += \
|
||||||
@ -1588,8 +1580,7 @@ test_unit_name_CFLAGS = \
|
|||||||
$(SECCOMP_CFLAGS)
|
$(SECCOMP_CFLAGS)
|
||||||
|
|
||||||
test_unit_name_LDADD = \
|
test_unit_name_LDADD = \
|
||||||
libcore.la \
|
libcore.la
|
||||||
$(RT_LIBS)
|
|
||||||
|
|
||||||
test_unit_file_SOURCES = \
|
test_unit_file_SOURCES = \
|
||||||
src/test/test-unit-file.c
|
src/test/test-unit-file.c
|
||||||
@ -1599,8 +1590,7 @@ test_unit_file_CFLAGS = \
|
|||||||
$(SECCOMP_CFLAGS)
|
$(SECCOMP_CFLAGS)
|
||||||
|
|
||||||
test_unit_file_LDADD = \
|
test_unit_file_LDADD = \
|
||||||
libcore.la \
|
libcore.la
|
||||||
$(RT_LIBS)
|
|
||||||
|
|
||||||
test_utf8_SOURCES = \
|
test_utf8_SOURCES = \
|
||||||
src/test/test-utf8.c
|
src/test/test-utf8.c
|
||||||
@ -1684,7 +1674,6 @@ test_path_lookup_SOURCES = \
|
|||||||
src/test/test-path-lookup.c
|
src/test/test-path-lookup.c
|
||||||
|
|
||||||
test_path_lookup_LDADD = \
|
test_path_lookup_LDADD = \
|
||||||
-lm \
|
|
||||||
libshared.la
|
libshared.la
|
||||||
|
|
||||||
test_uid_range_SOURCES = \
|
test_uid_range_SOURCES = \
|
||||||
@ -1813,8 +1802,7 @@ test_tables_LDADD = \
|
|||||||
libsystemd-journal-internal.la \
|
libsystemd-journal-internal.la \
|
||||||
libjournal-core.la \
|
libjournal-core.la \
|
||||||
libcore.la \
|
libcore.la \
|
||||||
libudev-core.la \
|
libudev-core.la
|
||||||
$(RT_LIBS)
|
|
||||||
|
|
||||||
test_prioq_SOURCES = \
|
test_prioq_SOURCES = \
|
||||||
src/test/test-prioq.c
|
src/test/test-prioq.c
|
||||||
@ -1850,8 +1838,7 @@ test_ipcrm_SOURCES = \
|
|||||||
src/test/test-ipcrm.c
|
src/test/test-ipcrm.c
|
||||||
|
|
||||||
test_ipcrm_LDADD = \
|
test_ipcrm_LDADD = \
|
||||||
libshared.la \
|
libshared.la
|
||||||
-lrt
|
|
||||||
|
|
||||||
test_btrfs_SOURCES = \
|
test_btrfs_SOURCES = \
|
||||||
src/test/test-btrfs.c
|
src/test/test-btrfs.c
|
||||||
@ -1943,8 +1930,7 @@ test_cgroup_mask_CFLAGS = \
|
|||||||
$(SECCOMP_CFLAGS)
|
$(SECCOMP_CFLAGS)
|
||||||
|
|
||||||
test_cgroup_mask_LDADD = \
|
test_cgroup_mask_LDADD = \
|
||||||
libcore.la \
|
libcore.la
|
||||||
$(RT_LIBS)
|
|
||||||
|
|
||||||
test_cgroup_util_SOURCES = \
|
test_cgroup_util_SOURCES = \
|
||||||
src/test/test-cgroup-util.c
|
src/test/test-cgroup-util.c
|
||||||
@ -2023,8 +2009,7 @@ test_sched_prio_CFLAGS = \
|
|||||||
$(SECCOMP_CFLAGS)
|
$(SECCOMP_CFLAGS)
|
||||||
|
|
||||||
test_sched_prio_LDADD = \
|
test_sched_prio_LDADD = \
|
||||||
libcore.la \
|
libcore.la
|
||||||
$(RT_LIBS)
|
|
||||||
|
|
||||||
test_conf_files_SOURCES = \
|
test_conf_files_SOURCES = \
|
||||||
src/test/test-conf-files.c
|
src/test/test-conf-files.c
|
||||||
@ -2095,8 +2080,7 @@ systemd_analyze_CFLAGS = \
|
|||||||
$(SECCOMP_CFLAGS)
|
$(SECCOMP_CFLAGS)
|
||||||
|
|
||||||
systemd_analyze_LDADD = \
|
systemd_analyze_LDADD = \
|
||||||
libcore.la \
|
libcore.la
|
||||||
$(RT_LIBS)
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
systemd_initctl_SOURCES = \
|
systemd_initctl_SOURCES = \
|
||||||
@ -2792,20 +2776,12 @@ libbus_proxy_core_la_SOURCES = \
|
|||||||
src/bus-proxyd/synthesize.c \
|
src/bus-proxyd/synthesize.c \
|
||||||
src/bus-proxyd/synthesize.h
|
src/bus-proxyd/synthesize.h
|
||||||
|
|
||||||
libbus_proxy_core_la_CFLAGS = \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
-pthread
|
|
||||||
|
|
||||||
libbus_proxy_core_la_LIBADD = \
|
libbus_proxy_core_la_LIBADD = \
|
||||||
libshared.la
|
libshared.la
|
||||||
|
|
||||||
systemd_bus_proxyd_SOURCES = \
|
systemd_bus_proxyd_SOURCES = \
|
||||||
src/bus-proxyd/bus-proxyd.c
|
src/bus-proxyd/bus-proxyd.c
|
||||||
|
|
||||||
systemd_bus_proxyd_CFLAGS = \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
-pthread
|
|
||||||
|
|
||||||
systemd_bus_proxyd_LDADD = \
|
systemd_bus_proxyd_LDADD = \
|
||||||
libbus-proxy-core.la \
|
libbus-proxy-core.la \
|
||||||
libshared.la
|
libshared.la
|
||||||
@ -2940,22 +2916,13 @@ libsystemd_internal_la_SOURCES = \
|
|||||||
nodist_libsystemd_internal_la_SOURCES = \
|
nodist_libsystemd_internal_la_SOURCES = \
|
||||||
src/libsystemd/libsystemd.sym
|
src/libsystemd/libsystemd.sym
|
||||||
|
|
||||||
libsystemd_internal_la_CFLAGS = \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
-pthread
|
|
||||||
|
|
||||||
libsystemd_internal_la_LIBADD = \
|
libsystemd_internal_la_LIBADD = \
|
||||||
libbasic.la \
|
libbasic.la
|
||||||
$(RT_LIBS)
|
|
||||||
|
|
||||||
libsystemd_resolve_la_SOURCES = \
|
libsystemd_resolve_la_SOURCES = \
|
||||||
src/libsystemd/sd-resolve/sd-resolve.c \
|
src/libsystemd/sd-resolve/sd-resolve.c \
|
||||||
src/libsystemd/sd-resolve/resolve-util.h
|
src/libsystemd/sd-resolve/resolve-util.h
|
||||||
|
|
||||||
libsystemd_resolve_la_CFLAGS = \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
-pthread
|
|
||||||
|
|
||||||
libsystemd_resolve_la_LIBADD = \
|
libsystemd_resolve_la_LIBADD = \
|
||||||
-lresolv
|
-lresolv
|
||||||
|
|
||||||
@ -3073,10 +3040,6 @@ test_bus_signature_LDADD = \
|
|||||||
test_bus_chat_SOURCES = \
|
test_bus_chat_SOURCES = \
|
||||||
src/libsystemd/sd-bus/test-bus-chat.c
|
src/libsystemd/sd-bus/test-bus-chat.c
|
||||||
|
|
||||||
test_bus_chat_CFLAGS = \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
-pthread
|
|
||||||
|
|
||||||
test_bus_chat_LDADD = \
|
test_bus_chat_LDADD = \
|
||||||
libshared.la
|
libshared.la
|
||||||
|
|
||||||
@ -3093,20 +3056,12 @@ test_bus_cleanup_LDADD = \
|
|||||||
test_bus_server_SOURCES = \
|
test_bus_server_SOURCES = \
|
||||||
src/libsystemd/sd-bus/test-bus-server.c
|
src/libsystemd/sd-bus/test-bus-server.c
|
||||||
|
|
||||||
test_bus_server_CFLAGS = \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
-pthread
|
|
||||||
|
|
||||||
test_bus_server_LDADD = \
|
test_bus_server_LDADD = \
|
||||||
libshared.la
|
libshared.la
|
||||||
|
|
||||||
test_bus_objects_SOURCES = \
|
test_bus_objects_SOURCES = \
|
||||||
src/libsystemd/sd-bus/test-bus-objects.c
|
src/libsystemd/sd-bus/test-bus-objects.c
|
||||||
|
|
||||||
test_bus_objects_CFLAGS = \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
-pthread
|
|
||||||
|
|
||||||
test_bus_objects_LDADD = \
|
test_bus_objects_LDADD = \
|
||||||
libshared.la
|
libshared.la
|
||||||
|
|
||||||
@ -3194,10 +3149,6 @@ test_resolve_LDADD = \
|
|||||||
libsystemd-resolve.la \
|
libsystemd-resolve.la \
|
||||||
libshared.la
|
libshared.la
|
||||||
|
|
||||||
test_resolve_CFLAGS = \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
-pthread
|
|
||||||
|
|
||||||
busctl_SOURCES = \
|
busctl_SOURCES = \
|
||||||
src/libsystemd/sd-bus/busctl.c \
|
src/libsystemd/sd-bus/busctl.c \
|
||||||
src/libsystemd/sd-bus/busctl-introspect.c \
|
src/libsystemd/sd-bus/busctl-introspect.c \
|
||||||
@ -3284,8 +3235,7 @@ test_dhcp_client_SOURCES = \
|
|||||||
test_dhcp_client_LDADD = \
|
test_dhcp_client_LDADD = \
|
||||||
libsystemd-network.la \
|
libsystemd-network.la \
|
||||||
libudev-internal.la \
|
libudev-internal.la \
|
||||||
libshared.la \
|
libshared.la
|
||||||
$(LIBIDN_LIBS)
|
|
||||||
|
|
||||||
test_dhcp_server_SOURCES = \
|
test_dhcp_server_SOURCES = \
|
||||||
src/libsystemd-network/test-dhcp-server.c
|
src/libsystemd-network/test-dhcp-server.c
|
||||||
@ -3800,8 +3750,7 @@ test_libudev_SOURCES = \
|
|||||||
|
|
||||||
test_libudev_LDADD = \
|
test_libudev_LDADD = \
|
||||||
libudev-internal.la \
|
libudev-internal.la \
|
||||||
libshared.la \
|
libshared.la
|
||||||
$(ACL_LIBS)
|
|
||||||
|
|
||||||
test_udev_SOURCES = \
|
test_udev_SOURCES = \
|
||||||
src/test/test-udev.c
|
src/test/test-udev.c
|
||||||
@ -3809,9 +3758,7 @@ test_udev_SOURCES = \
|
|||||||
test_udev_LDADD = \
|
test_udev_LDADD = \
|
||||||
libudev-core.la \
|
libudev-core.la \
|
||||||
$(BLKID_LIBS) \
|
$(BLKID_LIBS) \
|
||||||
$(KMOD_LIBS) \
|
$(KMOD_LIBS)
|
||||||
$(SELINUX_LIBS) \
|
|
||||||
$(ACL_LIBS)
|
|
||||||
|
|
||||||
check_DATA += \
|
check_DATA += \
|
||||||
test/sys
|
test/sys
|
||||||
@ -4938,7 +4885,6 @@ libnss_myhostname_la_LDFLAGS = \
|
|||||||
|
|
||||||
libnss_myhostname_la_LIBADD = \
|
libnss_myhostname_la_LIBADD = \
|
||||||
libshared.la
|
libshared.la
|
||||||
#libsystemd-network.la
|
|
||||||
|
|
||||||
lib_LTLIBRARIES += \
|
lib_LTLIBRARIES += \
|
||||||
libnss_myhostname.la
|
libnss_myhostname.la
|
||||||
@ -5269,8 +5215,7 @@ gperf_txt_sources += \
|
|||||||
|
|
||||||
systemd_resolved_LDADD = \
|
systemd_resolved_LDADD = \
|
||||||
libsystemd-network.la \
|
libsystemd-network.la \
|
||||||
libshared.la \
|
libshared.la
|
||||||
$(LIBIDN_LIBS)
|
|
||||||
|
|
||||||
rootlibexec_PROGRAMS += \
|
rootlibexec_PROGRAMS += \
|
||||||
systemd-resolved
|
systemd-resolved
|
||||||
@ -5339,8 +5284,7 @@ nodist_systemd_resolve_host_SOURCES = \
|
|||||||
src/resolve/dns_type-to-name.h
|
src/resolve/dns_type-to-name.h
|
||||||
|
|
||||||
systemd_resolve_host_LDADD = \
|
systemd_resolve_host_LDADD = \
|
||||||
libshared.la \
|
libshared.la
|
||||||
$(LIBIDN_LIBS)
|
|
||||||
|
|
||||||
rootlibexec_PROGRAMS += \
|
rootlibexec_PROGRAMS += \
|
||||||
systemd-resolve-host
|
systemd-resolve-host
|
||||||
@ -5359,8 +5303,7 @@ systemd_networkd_SOURCES = \
|
|||||||
src/network/networkd.c
|
src/network/networkd.c
|
||||||
|
|
||||||
systemd_networkd_LDADD = \
|
systemd_networkd_LDADD = \
|
||||||
libnetworkd-core.la \
|
libnetworkd-core.la
|
||||||
$(LIBIDN_LIBS)
|
|
||||||
|
|
||||||
if HAVE_LIBIPTC
|
if HAVE_LIBIPTC
|
||||||
systemd_networkd_LDADD += \
|
systemd_networkd_LDADD += \
|
||||||
@ -5456,8 +5399,7 @@ test_network_SOURCES = \
|
|||||||
src/network/test-network.c
|
src/network/test-network.c
|
||||||
|
|
||||||
test_network_LDADD = \
|
test_network_LDADD = \
|
||||||
libnetworkd-core.la \
|
libnetworkd-core.la
|
||||||
$(LIBIDN_LIBS)
|
|
||||||
|
|
||||||
if HAVE_LIBIPTC
|
if HAVE_LIBIPTC
|
||||||
test_network_LDADD += \
|
test_network_LDADD += \
|
||||||
|
@ -301,12 +301,6 @@ AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not
|
|||||||
CAP_LIBS="$LIBS"
|
CAP_LIBS="$LIBS"
|
||||||
AC_SUBST(CAP_LIBS)
|
AC_SUBST(CAP_LIBS)
|
||||||
|
|
||||||
LIBS=
|
|
||||||
AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
|
|
||||||
RT_LIBS="$LIBS"
|
|
||||||
AC_SUBST(RT_LIBS)
|
|
||||||
LIBS="$save_LIBS"
|
|
||||||
|
|
||||||
AC_CHECK_FUNCS([memfd_create])
|
AC_CHECK_FUNCS([memfd_create])
|
||||||
AC_CHECK_FUNCS([__secure_getenv secure_getenv])
|
AC_CHECK_FUNCS([__secure_getenv secure_getenv])
|
||||||
AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, getrandom, renameat2, kcmp, LO_FLAGS_PARTSCAN],
|
AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, getrandom, renameat2, kcmp, LO_FLAGS_PARTSCAN],
|
||||||
|
Loading…
Reference in New Issue
Block a user