From: Jonathan Creekmore Subject: [PATCH] oxenstored: link in the systemd system library Date: Wed, 22 Jul 2015 17:02:39 -0500 Message-ID: <1437602559-12233-1-git-send-email-jonathan.creekmore@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZI26J-0007UM-Se for xen-devel@lists.xenproject.org; Wed, 22 Jul 2015 22:02:56 +0000 Received: by ykay190 with SMTP id y190so204657199yka.3 for ; Wed, 22 Jul 2015 15:02:53 -0700 (PDT) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Jonathan Creekmore , dave.scott@eu.citrix.com List-Id: xen-devel@lists.xenproject.org If systemd is configured for use AND you are building oxenstored, the C systemd library must be linked in to the oxenstored binary instead of just into the static ocaml stub. Signed-off-by: Jonathan Creekmore --- tools/ocaml/xenstored/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/ocaml/xenstored/Makefile b/tools/ocaml/xenstored/Makefile index d861f11..38ca347 100644 --- a/tools/ocaml/xenstored/Makefile +++ b/tools/ocaml/xenstored/Makefile @@ -64,9 +64,11 @@ XENSTOREDLIBS = \ -ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xb $(OCAML_TOPLEVEL)/libs/xb/xenbus.cmxa \ -ccopt -L -ccopt $(XEN_ROOT)/tools/libxc +XENSTORED_LDFLAGS-$(CONFIG_SYSTEMD) += -cclib $(SYSTEMD_LIBS) + PROGRAMS = oxenstored -oxenstored_LIBS = $(XENSTOREDLIBS) +oxenstored_LIBS = $(XENSTOREDLIBS) $(XENSTORED_LDFLAGS-y) oxenstored_OBJS = $(OBJS) OCAML_PROGRAM = oxenstored -- 2.1.4