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
This commit is contained in:
parent
09692a459c
commit
1b8cc52931
|
@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [ bison flex ];
|
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 = ''
|
installPhase = ''
|
||||||
install -D -m555 iouyap $out/bin/iouyap;
|
install -D -m555 iouyap $out/bin/iouyap;
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue