diff options
Diffstat (limited to 'pkgs/development/compilers/ocaml/4.02.nix')
-rw-r--r-- | pkgs/development/compilers/ocaml/4.02.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ocaml/4.02.nix b/pkgs/development/compilers/ocaml/4.02.nix index 9610b78257602..42b9e21108d8c 100644 --- a/pkgs/development/compilers/ocaml/4.02.nix +++ b/pkgs/development/compilers/ocaml/4.02.nix @@ -10,4 +10,10 @@ import ./generic.nix { sha256 = "sha256:12sw512kpwk0xf2g6j0h5vqgd8xcmgrvgyilx6fxbd6bnfv1yib9"; } ]; sha256 = "1qwwvy8nzd87hk8rd9sm667nppakiapnx4ypdwcrlnav2dz6kil3"; + + # 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 + NIX_CFLAGS_COMPILE = "-fcommon"; } |