Merge pull request #175365 from trofi/workaround-fno-common-for-tftp-hpa

tftp-hpa: add -fcommon workaround

authored by Sandro and committed by GitHub 1f8008a7 0f8df9ee

+6
+6
pkgs/tools/networking/tftp-hpa/default.nix
··· 8 sha256 = "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"; 9 }; 10 11 meta = with lib; { 12 description = "TFTP tools - a lot of fixes on top of BSD TFTP"; 13 maintainers = with maintainers; [ raskin ];
··· 8 sha256 = "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"; 9 }; 10 11 + # Workaround build failure on -fno-common toolchains like upstream 12 + # gcc-10. Otherwise build fails as: 13 + # ld: main.o:/build/tftp-hpa-5.2/tftp/main.c:98: multiple definition of 14 + # `toplevel'; tftp.o:/build/tftp-hpa-5.2/tftp/tftp.c:51: first defined here 15 + NIX_CFLAGS_COMPILE="-fcommon"; 16 + 17 meta = with lib; { 18 description = "TFTP tools - a lot of fixes on top of BSD TFTP"; 19 maintainers = with maintainers; [ raskin ];