Merge pull request #176450 from trofi/workaround-fno-common-for-reaverwps

reaverwps: add -fcommon workaround
This commit is contained in:
Sergei Trofimovich 2022-06-11 11:23:08 +00:00 committed by GitHub
commit bc2f96b1e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)