From 52a608a475fb11becc2ace2a603b31951fe80dad Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 28 Feb 2025 11:14:55 +0000 Subject: [PATCH] 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. --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 1.8.3.1