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:
parent
49c4223e98
commit
a38af49318
|
@ -8,6 +8,12 @@ stdenv.mkDerivation rec {
|
||||||
hash = "sha256-4VjxneRWDJNevgUHwht5v/F2GLkjDYB2/oxf/5/b1bE=";
|
hash = "sha256-4VjxneRWDJNevgUHwht5v/F2GLkjDYB2/oxf/5/b1bE=";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ dev86 sharutils ];
|
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 = [
|
makeFlags = [
|
||||||
"DESTDIR=${placeholder "out"}"
|
"DESTDIR=${placeholder "out"}"
|
||||||
"SBIN_DIR=/bin"
|
"SBIN_DIR=/bin"
|
||||||
|
|
Loading…
Reference in a new issue