mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
ocaml: Don't embed -L../lib/.libs in final mlguestfs.cma or .cmxa
$ ocamlobjinfo /usr/lib64/ocaml/guestfs/mlguestfs.cma File /usr/lib64/ocaml/guestfs/mlguestfs.cma Force custom: no Extra C object files: -lmlguestfs -L../lib/.libs -lguestfs ... (and the same in mlguestfs.cmxa). This was caused because we run ocamlmklib with this -L parameter so that OCaml tests and examples will link with the local libguestfs.so (instead of the system-installed version), but for other reasons that doesn't actually work either.
This commit is contained in:
committed by
rwmjones
parent
e127edcafc
commit
e11583a03a
@@ -67,13 +67,13 @@ stamp-mlguestfs: libguestfsocaml.a $(guestfs_cmm)
|
||||
-ldopt '$(LDFLAGS)' \
|
||||
$(libguestfsocaml_a_OBJECTS) guestfs.cmo \
|
||||
$(LTLIBINTL) \
|
||||
-L../lib/.libs -lguestfs
|
||||
-lguestfs
|
||||
if HAVE_OCAMLOPT
|
||||
$(OCAMLMKLIB) -o mlguestfs \
|
||||
-ldopt '$(LDFLAGS)' \
|
||||
$(libguestfsocaml_a_OBJECTS) guestfs.cmx \
|
||||
$(LTLIBINTL) \
|
||||
-L../lib/.libs -lguestfs
|
||||
-lguestfs
|
||||
endif
|
||||
touch $@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user