[Libguestfs] [PATCH libguestfs 2/2] build: Allow OCaml programs using libguestfs to be compiled against build dir.

Eric Blake eblake at redhat.com
Wed Mar 11 11:54:15 UTC 2020


On 3/10/20 10:05 AM, Richard W.M. Jones wrote:
> You have to use:
>    ../libguestfs/run ./configure
>    ../libguestfs/run make
> 
> Use of the second ../libguestfs/run against make is unfortunate but I
> believe it's unavoidable due to the way that ocamlfind works.

Or even:

../libguestfs/run sh -c './configure && make'

But yes, the need to set the environment multiple times makes sense, 
even if it is unfortunate that 'make' is unable to rely solely on what 
was learned at configure-time.

> ---
>   .gitignore        |  1 +
>   ocaml/Makefile.am | 19 ++++++++++++++++++-
>   run.in            |  2 ++
>   3 files changed, 21 insertions(+), 1 deletion(-)
> 

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




More information about the Libguestfs mailing list