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.
This commit is contained in:
Richard W.M. Jones
2025-04-22 12:37:40 +01:00
parent 0423f2cec3
commit 166395914f

View File

@@ -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 \