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
This commit is contained in:
Sergei Trofimovich 2022-06-03 07:57:41 +01:00
parent 236cc2971a
commit e14ad06f08

View File

@ -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 = ''