tools/xenstore: Don't link libxenstore against systemd
PATCH 1/1 tools/xenstore: Don't link libxenstore against systemd
It is only xenstored which uses libsystemd. Avoid having libxenstored pull libsystemd into the address space of all of its users.
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
--- tools/xenstore/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
tools/xenstore/Makefile +5 -3
@@ -15,9 +15,6 @@ CFLAGS += $(CFLAGS_libxentoolcore) CFLAGS += -DXEN_LIB_STORED="\"$(XEN_LIB_STORED)\"" CFLAGS += -DXEN_RUN_STORED="\"$(XEN_RUN_STORED)\"" -CFLAGS-$(CONFIG_SYSTEMD) += $(SYSTEMD_CFLAGS) -LDFLAGS-$(CONFIG_SYSTEMD) += $(SYSTEMD_LIBS) - CFLAGS += $(CFLAGS-y) LDFLAGS += $(LDFLAGS-y)
@@ -74,6 +71,11 @@ xenstored_probes.o: xenstored_solaris.o CFLAGS += -DHAVE_DTRACE=1 endif +ifeq ($(CONFIG_SYSTEMD),y) +$(XENSTORED_OBJS): CFLAGS += $(SYSTEMD_CFLAGS) +xenstored: LDFLAGS += $(SYSTEMD_LIBS) +endif + $(XENSTORED_OBJS): CFLAGS += $(CFLAGS_libxengnttab) xenstored: $(XENSTORED_OBJS)
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Andrew Cooper
It is only xenstored which uses libsystemd. Avoid having libxenstored pull libsystemd into the address space of all of its users.
Signed-off-by Andrew Cooper <[email protected]>
Acked-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel