1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

Merge pull request #176446 from trofi/workaround-fno-common-for-lilo

lilo: add -fcommon workaround
This commit is contained in:
Anderson Torres 2022-06-05 21:31:35 -03:00 committed by GitHub
commit 7b330cb215
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"