2020-04-24 23:36:52 +00:00
|
|
|
import ./generic.nix {
|
|
|
|
major_version = "4";
|
|
|
|
minor_version = "03";
|
|
|
|
patch_version = "0";
|
|
|
|
sha256 = "09p3iwwi55r6rbrpyp8f0wmkb0ppcgw67yxw6yfky60524wayp39";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Compatibility with Glibc 2.34
|
|
|
|
{ url = "https://github.com/ocaml/ocaml/commit/a8b2cc3b40f5269ce8525164ec2a63b35722b22b.patch";
|
|
|
|
sha256 = "sha256:1rrknmrk86xrj2k3hznnjk1gwnliyqh125zabg1hvy6dlvml9b0x"; }
|
2023-01-20 10:41:00 +00:00
|
|
|
# Compatibility with Binutils 2.29
|
|
|
|
{ url = "https://github.com/ocaml/ocaml/commit/c204f07bfb20174f9e1c9ff586fb7b2f42b8bf18.patch";
|
|
|
|
sha256 = "sha256-AAXyMZ7ujO67SGz+tGXKZkVcINAwvccHlFHmKnUt848="; }
|
2022-04-15 01:41:22 +00:00
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of
|
|
|
|
# `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|