Merge pull request #173716 from trofi/workaround-fno-common-for-dirb

dirb: add -fcommon workaround

authored by Sergei Trofimovich and committed by GitHub c2934244 59df0efd

+6
+6
pkgs/tools/networking/dirb/default.nix
··· 25 25 sed -i "s#/usr#$out#" src/dirb.c 26 26 ''; 27 27 28 + # Workaround build failure on -fno-common toolchains like upstream 29 + # gcc-10. Otherwise build fails as: 30 + # ld: resume.o:/build/dirb222/src/variables.h:15: multiple definition of `curl'; 31 + # crea_wordlist.o:/build/dirb222/src/variables.h:15: first defined here 32 + NIX_CFLAGS_COMPILE = "-fcommon"; 33 + 28 34 postInstall = '' 29 35 mkdir -p $out/share/dirb/ 30 36 cp -r wordlists/ $out/share/dirb/