iouyap: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: netmap.o:(.bss+0x20): multiple definition of `sizecheck'; iouyap.o:(.bss+0x20): first defined here
main
Sergei Trofimovich 2 years ago
parent 09692a459c
commit 1b8cc52931
  1. 5
      pkgs/tools/networking/iouyap/default.nix

@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
buildInputs = [ bison flex ];
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: netmap.o:(.bss+0x20): multiple definition of `sizecheck'; iouyap.o:(.bss+0x20): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
installPhase = ''
install -D -m555 iouyap $out/bin/iouyap;
'';

Loading…
Cancel
Save