ocaml: Prefer -ccopt -L... instead of -cclib

Reported-by: Mohamed Akram
Fixes: https://github.com/libguestfs/libguestfs/issues/191
This commit is contained in:
Richard W.M. Jones
2025-04-26 09:26:15 +01:00
committed by rwmjones
parent e11583a03a
commit 137fde9f77
2 changed files with 2 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ endif
if HAVE_OCAMLOPT
%.opt: %.cmx mlguestfs.cmxa
$(guestfs_am_v_ocamlopt)$(OCAMLFIND) ocamlopt $(OCAMLFLAGS) -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlguestfs.cmxa $< -o $@
$(guestfs_am_v_ocamlopt)$(OCAMLFIND) ocamlopt $(OCAMLFLAGS) -ccopt -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlguestfs.cmxa $< -o $@
endif
check-valgrind:

View File

@@ -48,7 +48,7 @@ if HAVE_OCAML
noinst_SCRIPTS = create_disk debug_logging inspect_vm
OCAMLFINDFLAGS = -cclib -L$(top_builddir)/lib/.libs
OCAMLFINDFLAGS = -ccopt -L$(top_builddir)/lib/.libs
if HAVE_OCAMLOPT
create_disk: create_disk.ml