diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-06-05 20:08:49 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-06-05 20:09:04 +0100 |
commit | a38af4931825722f973ad89e99d8c7e43fe6865a (patch) | |
tree | 0dea7eabffa5423ab02a00172f581166ecd5d0fe /pkgs/tools/misc/lilo | |
parent | 49c4223e984aef1e78d0073cee112c66b23381fa (diff) |
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
Diffstat (limited to 'pkgs/tools/misc/lilo')
-rw-r--r-- | pkgs/tools/misc/lilo/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/misc/lilo/default.nix b/pkgs/tools/misc/lilo/default.nix index bba9db383907f..f72cdc422be0c 100644 --- a/pkgs/tools/misc/lilo/default.nix +++ b/pkgs/tools/misc/lilo/default.nix @@ -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" |