[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).



> > +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)

Rob

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.