reaverwps: add -fcommon workaround

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

    ld: crypto/dh_groups.o:src/crypto/../globule.h:141: multiple definition of
      `globule'; /build/ccrzO6vA.o:src/globule.h:141: first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-05 20:15:29 +01:00
parent 49c4223e98
commit 6dd63933f3

View File

@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ libpcap sqlite ];
# Workaround build failure on -fno-common toolchains:
# ld: crypto/dh_groups.o:src/crypto/../globule.h:141: multiple definition of
# `globule'; /build/ccrzO6vA.o:src/globule.h:141: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
setSourceRoot = ''
sourceRoot=$(echo */src)