mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
ocaml: Fix test for -runtime-variant _pic.
This fails with Fedora 32, and possibly earlier versions: checking if OCaml ‘-runtime-variant _pic’ works... no The reason is: $ ocamlc -runtime-variant _pic test.ml -o test File "test.ml", line 1: Error: Cannot find file camlheader_pic which may even be a packaging error in the Fedora package. However it makes no sense to test the bytecode compiler since we don't use it on any architecture we care about and bytecode doesn't even contain a linked runtime. Changing the test to use ocamlopt instead of ocamlc fixes the problem.
This commit is contained in:
@@ -67,7 +67,7 @@ if test "x$OCAMLC" != "xno"; then
|
||||
AC_MSG_CHECKING([if OCaml ‘-runtime-variant _pic’ works])
|
||||
rm -f conftest.ml contest
|
||||
echo 'print_endline "hello world"' > conftest.ml
|
||||
if $OCAMLC conftest.ml -runtime-variant _pic -o conftest >&5 2>&5 ; then
|
||||
if $OCAMLOPT conftest.ml -runtime-variant _pic -o conftest >&5 2>&5 ; then
|
||||
AC_MSG_RESULT([yes])
|
||||
OCAML_RUNTIME_VARIANT_PIC_OPTION="-runtime-variant _pic"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user