Merge pull request #173986 from trofi/workaround-fno-common-for-mlmmj

mlmmj: add -fcommon workaround

authored by

Sergei Trofimovich and committed by
GitHub
5ebfb184 ac4e48e0

+6
+6
pkgs/servers/mail/mlmmj/default.nix
··· 10 sha256 = "1sghqvwizvm1a9w56r34qy5njaq1c26bagj85r60h32gh3fx02bn"; 11 }; 12 13 postInstall = '' 14 # grab all documentation files 15 docfiles=$(find -maxdepth 1 -name "[[:upper:]][[:upper:]]*")
··· 10 sha256 = "1sghqvwizvm1a9w56r34qy5njaq1c26bagj85r60h32gh3fx02bn"; 11 }; 12 13 + # Workaround build failure on -fno-common toolchains like upstream 14 + # gcc-10. Otherwise build fails as: 15 + # ld: getlistdelim.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: multiple definition of 16 + # `subtype_strs'; mlmmj-send.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: first defined here 17 + NIX_CFLAGS_COMPILE = "-fcommon"; 18 + 19 postInstall = '' 20 # grab all documentation files 21 docfiles=$(find -maxdepth 1 -name "[[:upper:]][[:upper:]]*")