Merge pull request #176061 from trofi/workaround-fno-common-for-webalizer

webalizer: add -fcommon workaround
This commit is contained in:
Sandro 2022-06-03 17:04:26 +02:00 committed by GitHub
commit 77477b0c8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};