]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
tools/{c,o}xenstored: Don't link against libsystemd
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 25 Apr 2024 09:26:58 +0000 (10:26 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 23 May 2024 14:04:40 +0000 (15:04 +0100)
Use the local freestanding wrapper instead.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Christian Lindig <christian.lindig@cloud.com>
tools/ocaml/xenstored/Makefile
tools/ocaml/xenstored/systemd_stubs.c
tools/xenstored/Makefile
tools/xenstored/posix.c

index e8aaecf2e6300f96b7d53b765293143795677087..fa45305d8c6633c5902e80354177b6ebbe5ef2dc 100644 (file)
@@ -4,8 +4,7 @@ include $(OCAML_TOPLEVEL)/common.make
 
 # Include configure output (config.h)
 CFLAGS += -include $(XEN_ROOT)/tools/config.h
-CFLAGS-$(CONFIG_SYSTEMD)  += $(SYSTEMD_CFLAGS)
-LDFLAGS-$(CONFIG_SYSTEMD) += $(SYSTEMD_LIBS)
+CFLAGS-$(CONFIG_SYSTEMD)  += $(CFLAGS_xeninclude)
 
 CFLAGS  += $(CFLAGS-y)
 CFLAGS  += $(APPEND_CFLAGS)
index f4c875075abe4c18d820759a866db41afbe34963..7dbbdd35bf30e05b41ef9b9c12c8cc325d16c765 100644 (file)
@@ -25,7 +25,7 @@
 
 #if defined(HAVE_SYSTEMD)
 
-#include <systemd/sd-daemon.h>
+#include <xen-sd-notify.h>
 
 CAMLprim value ocaml_sd_notify_ready(value ignore)
 {
index e0897ed1ba300e0c49064880afd54f0cad1eff7c..09adfe1d5064a29c37b18c341f73f388f8e3021d 100644 (file)
@@ -9,11 +9,6 @@ xenstored: LDLIBS += $(LDLIBS_libxenctrl)
 xenstored: LDLIBS += -lrt
 xenstored: LDLIBS += $(SOCKET_LIBS)
 
-ifeq ($(CONFIG_SYSTEMD),y)
-$(XENSTORED_OBJS-y): CFLAGS += $(SYSTEMD_CFLAGS)
-xenstored: LDLIBS += $(SYSTEMD_LIBS)
-endif
-
 TARGETS := xenstored
 
 .PHONY: all
index d88c82d972d7fc02bf748d9fbfa5eda60d232526..6037d739d013f49e765678784fd3b54513d86129 100644 (file)
@@ -27,7 +27,7 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 #if defined(HAVE_SYSTEMD)
-#include <systemd/sd-daemon.h>
+#include <xen-sd-notify.h>
 #endif
 #include <xen-tools/xenstore-common.h>
 
@@ -393,7 +393,7 @@ void late_init(bool live_update)
 #if defined(HAVE_SYSTEMD)
        if (!live_update) {
                sd_notify(1, "READY=1");
-               fprintf(stderr, SD_NOTICE "xenstored is ready\n");
+               fprintf(stderr, "xenstored is ready\n");
        }
 #endif
 }