[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 05/27] libxc: ocaml: add simple binding for xentoollog (output only).
On Tue, 2013-11-12 at 13:46 +0000, Rob Hoes wrote: > > > +xtl_LIBS = \ > > > + -ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xentoollog > > $(OCAML_TOPLEVEL)/libs/xentoollog/xentoollog.cmxa \ > > > + -cclib -lxenctrl > > > > Sadly: > > /usr/bin/ld: cannot find -lxenctrl > > collect2: error: ld returned 1 exit status > > File "caml_startup", line 1, characters 0-1: > > Error: Error during linking > > > > You need to be using LDLIBS_libxenlight and CFLAGS_libxenlight etc like the > > tools/ocaml/libs/xl/Makefile does. On your system you are probably linking > > locally against the library in /usr/lib etc which is not desired... > > So does that mean this? > > +xtl_LIBS = \ > + -ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xentoollog > $(OCAML_TOPLEVEL)/libs/xentoollog/xentoollog.cmxa \ > + -cclib $(LDLIBS_libxenctrl) > > (this links fine on my machine) Looks better to me. I think all the usual confusion about C libraries in ocaml stubs are not a worry because this binary is in tree. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |