dillo: add -fcommon workaround

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

    ld: main.o:/build/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set';
      dpid.o:/build/dillo-3.0.5/dpid/dpid.h:64: first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-05 19:19:58 +01:00
parent 49c4223e98
commit 5ddc759a48

View file

@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
buildInputs = with lib;
[ perl fltk openssl libjpeg libpng libXcursor libXi libXinerama ];
# Workaround build failure on -fno-common toolchains:
# ld: main.o:/build/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set';
# dpid.o:/build/dillo-3.0.5/dpid/dpid.h:64: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
configureFlags = [ "--enable-ssl" ];
meta = with lib; {