src: Use detected OCAMLLIB instead of $(libdir)/ocaml
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 28 Feb 2025 11:14:55 +0000 (11:14 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 28 Feb 2025 11:14:55 +0000 (11:14 +0000)
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

index baf8ce4..638aa4f 100644 (file)
@@ -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)