mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
ocaml: make sure to pass LDFLAGS to ocamlmklibs linker (RHBZ#1624130)
Pass the LDFLAGS properly as arguments for the C linker when using
ocamlmklibs via the -ldopt option.
Followup of commit 34c23403c5.
This commit is contained in:
@@ -64,14 +64,14 @@ endif
|
||||
|
||||
stamp-mlguestfs: libguestfsocaml.a $(guestfs_cmm)
|
||||
$(OCAMLMKLIB) -o mlguestfs \
|
||||
-ldopt '$(LDFLAGS)' \
|
||||
$(libguestfsocaml_a_OBJECTS) guestfs.cmo \
|
||||
$(LDFLAGS) \
|
||||
$(LTLIBINTL) \
|
||||
-L../lib/.libs -lguestfs
|
||||
if HAVE_OCAMLOPT
|
||||
$(OCAMLMKLIB) -o mlguestfs \
|
||||
-ldopt '$(LDFLAGS)' \
|
||||
$(libguestfsocaml_a_OBJECTS) guestfs.cmx \
|
||||
$(LDFLAGS) \
|
||||
$(LTLIBINTL) \
|
||||
-L../lib/.libs -lguestfs
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user