From 20b40c71c736510bd9eafde5fa56a434a40ee008 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 3 Jun 2022 07:43:43 +0100 Subject: [PATCH] webalizer: add -fcommon workaround Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: dns_resolv.o:(.bss+0x20): multiple definition of `system_info'; webalizer.o:(.bss+0x76e0): first defined here --- pkgs/tools/networking/webalizer/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/webalizer/default.nix b/pkgs/tools/networking/webalizer/default.nix index 200202f9ae26..cf49ad0be3e2 100644 --- a/pkgs/tools/networking/webalizer/default.nix +++ b/pkgs/tools/networking/webalizer/default.nix @@ -9,6 +9,10 @@ stdenv.mkDerivation rec { sha256 = "0nl88y57a7gawfragj3viiigfkh5sgivfb4n0k89wzcjw278pj5g"; }; + # Workaround build failure on -fno-common toolchains: + # ld: dns_resolv.o:(.bss+0x20): multiple definition of `system_info'; webalizer.o:(.bss+0x76e0): first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; + preConfigure = '' substituteInPlace ./configure \ @@ -25,7 +29,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Web server log file analysis program"; - homepage = "http://www.webalizer.org"; + homepage = "https://webalizer.net/"; platforms = platforms.unix; license = licenses.gpl2; };