diff options
Diffstat (limited to 'pkgs/development/compilers/ocaml/4.01.0.nix')
-rw-r--r-- | pkgs/development/compilers/ocaml/4.01.0.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ocaml/4.01.0.nix b/pkgs/development/compilers/ocaml/4.01.0.nix index c19f03c5d1645..801e12d1549b9 100644 --- a/pkgs/development/compilers/ocaml/4.01.0.nix +++ b/pkgs/development/compilers/ocaml/4.01.0.nix @@ -10,4 +10,10 @@ import ./generic.nix { sha256 = "sha256:08mpy7lsiwv8m5qrqc4xzyiv2hri5713gz2qs1nfz02hz1bd79mc"; } ]; sha256 = "03d7ida94s1gpr3gadf4jyhmh5rrszd5s4m4z59daaib25rvfyv7"; + + # 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"; } |