From e14ad06f085ff7144d6d055e605b6ba4b956340a Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 3 Jun 2022 07:57:41 +0100 Subject: [PATCH] wml: add -fcommon workaround Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: iselect_browse.o:(.bss+0x2020): multiple definition of `Line'; iselect_main.o:(.bss+0x100000): first defined here --- pkgs/development/web/wml/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/web/wml/default.nix b/pkgs/development/web/wml/default.nix index a6ffe6e84e3f..ff3d20f16dab 100644 --- a/pkgs/development/web/wml/default.nix +++ b/pkgs/development/web/wml/default.nix @@ -28,6 +28,10 @@ perlPackages.buildPerlPackage { patches = [ ./redhat-with-thr.patch ./dynaloader.patch ./no_bitvector.patch ]; + # Workaround build failure on -fno-common toolchains: + # ld: iselect_browse.o:(.bss+0x2020): multiple definition of `Line'; iselect_main.o:(.bss+0x100000): first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; + hardeningDisable = [ "format" ]; postPatch = ''