jfsutils: add -fcommon workaround

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

    ld: extract.o:/build/jfsutils-1.1.15/fscklog/extract.c:67: multiple definition of
      `xchklog_buffer'; display.o:/build/jfsutils-1.1.15/fscklog/display.c:57: first defined here
This commit is contained in:
Sergei Trofimovich 2022-05-15 16:11:07 +01:00
parent 09692a459c
commit 50b95670d2

View file

@ -25,6 +25,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ libuuid ];
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: extract.o:/build/jfsutils-1.1.15/fscklog/extract.c:67: multiple definition of
# `xchklog_buffer'; display.o:/build/jfsutils-1.1.15/fscklog/display.c:57: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
meta = with lib; {
description = "IBM JFS utilities";
homepage = "http://jfs.sourceforge.net";