From: Ian Campbell Subject: Re: [PATCH v2] tools/ocaml: Fix library generation Date: Mon, 15 Apr 2013 11:21:34 +0100 Message-ID: <1366021294.4963.56.camel@zakaz.uk.xensource.com> References: <1366020597-7286-1-git-send-email-vincent.bernardoff@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1366020597-7286-1-git-send-email-vincent.bernardoff@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: Vincent Bernardoff Cc: Andrew Cooper , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, 2013-04-15 at 11:09 +0100, Vincent Bernardoff wrote: > Fix the commands given to the OCaml compiler to make the OCaml > bindings to Xen usable outside the build environment. > > Signed-off-by: Vincent Bernardoff > > --- > Changed since v1: > * tools/Rules.mk is not modified, changes are now in > bottom-level Makefiles of OCaml libraries How does this relate to the patch which Andy Cooper posted in ? > diff --git a/tools/ocaml/libs/eventchn/Makefile b/tools/ocaml/libs/eventchn/Makefile > index 2d8d618..ddd2ace 100644 > --- a/tools/ocaml/libs/eventchn/Makefile > +++ b/tools/ocaml/libs/eventchn/Makefile > @@ -8,7 +8,7 @@ OBJS = xeneventchn > INTF = $(foreach obj, $(OBJS),$(obj).cmi) > LIBS = xeneventchn.cma xeneventchn.cmxa > > -LIBS_xeneventchn = $(LDLIBS_libxenctrl) > +LIBS_xeneventchn = -L$(XEN_LIBXC) -lxenctrl The problem with this is that it seems to reintroduce a form of the problem solved by b7ee8d2f432f, that is accidental linking against libraries in /usr/lib (or elsewhere) instead of the freshly built ones in the source tree. Andy's version of the patch seems to have solved that issue, I was just hoping for a brief explanation of how (per <1365607338.27868.87.camel@zakaz.uk.xensource.com>) before I through it in the tree. Ian.