diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-06-05 19:19:58 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-06-05 19:20:24 +0100 |
commit | 5ddc759a4879cec6c87e853eec339dcf5546f6d5 (patch) | |
tree | 285d6dd7477f93a548bd9d39452b4bee21fa9e8f /pkgs/applications/networking | |
parent | 49c4223e984aef1e78d0073cee112c66b23381fa (diff) |
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
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r-- | pkgs/applications/networking/browsers/dillo/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/dillo/default.nix b/pkgs/applications/networking/browsers/dillo/default.nix index 8af0c1bc8e67d..72a1601d18724 100644 --- a/pkgs/applications/networking/browsers/dillo/default.nix +++ b/pkgs/applications/networking/browsers/dillo/default.nix @@ -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; { |