lilo: add -fcommon workaround

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

    ld: identify.o:(.bss+0x0): multiple definition of `identify';
      common.o:(.bss+0x160): first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-05 20:08:49 +01:00
parent 49c4223e98
commit a38af49318

View file

@ -8,6 +8,12 @@ stdenv.mkDerivation rec {
hash = "sha256-4VjxneRWDJNevgUHwht5v/F2GLkjDYB2/oxf/5/b1bE=";
};
nativeBuildInputs = [ dev86 sharutils ];
# Workaround build failure on -fno-common toolchains:
# ld: identify.o:(.bss+0x0): multiple definition of `identify';
# common.o:(.bss+0x160): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
makeFlags = [
"DESTDIR=${placeholder "out"}"
"SBIN_DIR=/bin"