Revert "Update names of the Unix and Camlstr libraries for OCaml 5.1.0"

This reverts commit 67766db26b.

RWMJ: Will be replaced by an upstream patch
This commit is contained in:
Richard W.M. Jones 2023-10-06 11:34:29 +01:00
parent 47191e3da1
commit b81ea517da

View File

@ -696,17 +696,6 @@ for %{name}.
%setup -q
%autopatch -p1
# The names of the Unix and Camlstr libraries changed in OCaml 5.1.0, and
# linking with libzstd is now necessary
%if 0%{?fedora} > 39
sed -i 's/-ldl/& -lzstd/' daemon/Makefile.am
%ifarch %{ocaml_native_compiler}
sed -ri 's/-l(camlstr|unix)/&nat/' daemon/Makefile.am
%else
sed -ri 's/-l(camlstr|unix)/&byt/' daemon/Makefile.am
%endif
%endif
%if 0%{patches_touch_autotools}
autoreconf -i
%endif