mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
a5fa81db039da889667ca4be3915c2666d9ccdce
Commite11583a03a("ocaml: Don't embed -L../lib/.libs in final mlguestfs.cma or .cmxa") was correct in itself, but as a side effect caused mlguestfs.cma to be linked to the system libguestfs. If system libguestfs was not installed, the build would fail entirely with: ocamlmklib -o mlguestfs \ -ldopt '-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' \ libguestfsocaml_a-guestfs-c.o libguestfsocaml_a-guestfs-c-actions.o libguestfsocaml_a-guestfs-c-errnos.o ../common/utils/libguestfsocaml_a-cleanups.o ../common/utils/libguestfsocaml_a-stringlists-utils.o guestfs.cmo \ \ -lguestfs /usr/bin/ld: cannot find -lguestfs: No such file or directory Fix (from Mohamed Akram) is to add -L../lib/.libs to the -ldopt flag. This does not embed the option in the final mlguestfs.cma file, but seems to only use it while building the library. Updates: commite11583a03aReported-by: Mohamed Akram Fixes: https://github.com/libguestfs/libguestfs/issues/191
…
…
…
…
…
Libguestfs is tools and a library for accessing and modifying guest disk images. For more information see the home page: http://libguestfs.org/ For discussion, development, patches, etc. please use the mailing list: https://lists.libguestfs.org To find out how to build libguestfs from source, read: docs/guestfs-building.pod http://libguestfs.org/guestfs-building.1.html man docs/guestfs-building.1 Copyright (C) 2009-2025 Red Hat Inc. The library is distributed under the LGPLv2+. The programs are distributed under the GPLv2+. Please see the files COPYING and COPYING.LIB for full license information. The examples are under a very liberal license.
Description
Languages
C
42.7%
OCaml
35.5%
Shell
7.1%
Makefile
4%
Perl
2.6%
Other
8%