From 166395914f7cb85133f871ee0dd876b94f33998f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 22 Apr 2025 12:37:40 +0100 Subject: [PATCH] daemon: Use $(OCAMLLIB) instead of ocamlc -where OCAMLLIB is already set to the value of ocamlc -where that was found at configure time, so there is no need to run that command again at build time. --- daemon/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 90ece8461..6d7492013 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -214,7 +214,7 @@ guestfsd_SOURCES = \ zerofree.c guestfsd_LDFLAGS = \ - -L$(shell $(OCAMLC) -where) \ + -L$(OCAMLLIB) \ -L$(shell $(OCAMLFIND) query hivex) \ -L$(shell $(OCAMLFIND) query augeas) \ -L../common/mlutils \ @@ -245,7 +245,7 @@ guestfsd_LDADD = \ guestfsd_CPPFLAGS = \ -DCAML_NAME_SPACE \ - -I$(shell $(OCAMLC) -where) \ + -I$(OCAMLLIB) \ -I$(top_srcdir)/gnulib/lib \ -I$(top_builddir)/gnulib/lib \ -I$(top_srcdir)/lib \ @@ -422,7 +422,7 @@ daemon_utils_tests_CPPFLAGS = \ -DCAML_NAME_SPACE \ -I. \ -I$(top_builddir) \ - -I$(shell $(OCAMLC) -where) \ + -I$(OCAMLLIB) \ -I$(top_srcdir)/gnulib/lib \ -I$(top_builddir)/gnulib/lib \ -I$(top_srcdir)/common/errnostring \