From: Richard W.M. Jones Date: Fri, 28 Feb 2025 11:14:55 +0000 (+0000) Subject: src: Use detected OCAMLLIB instead of $(libdir)/ocaml X-Git-Tag: v1.1.2~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=52a608a475fb11becc2ace2a603b31951fe80dad;p=virt-top.git src: Use detected OCAMLLIB instead of $(libdir)/ocaml Using $(libdir)/ocaml fails if ./configure --libdir=.. isn't set properly, and could be wrong anyway if there are other local changes to the OCaml install. In ./configure we are already detecting the correct path, so use that instead. --- diff --git a/src/Makefile.am b/src/Makefile.am index baf8ce4..638aa4f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -81,7 +81,7 @@ bin_PROGRAMS = virt-top virt_top_SOURCES = xml-c.c virt_top_CFLAGS = \ $(LIBXML2_CFLAGS) \ - -I$(libdir)/ocaml + -I$(OCAMLLIB) if !HAVE_OCAMLOPT OBJECTS = $(BOBJS)