From: Dave Scott Subject: Re: [PATCH] oxenstored: link in the systemd system library Date: Thu, 23 Jul 2015 09:02:27 +0000 Message-ID: References: <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 1ZICOc-0003oB-El for xen-devel@lists.xenproject.org; Thu, 23 Jul 2015 09:02:30 +0000 In-Reply-To: <1437602559-12233-1-git-send-email-jonathan.creekmore@gmail.com> Content-Language: en-US Content-ID: <948973D4B62E724A9A66BA3402A9EDD2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jonathan Creekmore Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org > On 22 Jul 2015, at 23:02, Jonathan Creekmore wrote: > > 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. This sounds sensible to me, Acked-by: David Scott > > 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 >