gcl: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: ./libgclp.a(user_match.o):(.bss+0x18): multiple definition of `tf'; ./libpre_gcl.a(main.o):(.bss+0x326d90): first defined here
This commit is contained in:
parent
064a605987
commit
b5644dfa57
|
@ -40,7 +40,10 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
hardeningDisable = [ "pic" "bindnow" ];
|
hardeningDisable = [ "pic" "bindnow" ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-fgnu89-inline";
|
# -fcommon: workaround build failure on -fno-common toolchains:
|
||||||
|
# ld: ./libgclp.a(user_match.o):(.bss+0x18): multiple definition of
|
||||||
|
# `tf'; ./libpre_gcl.a(main.o):(.bss+0x326d90): first defined here
|
||||||
|
NIX_CFLAGS_COMPILE = "-fgnu89-inline -fcommon";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "GNU Common Lisp compiler working via GCC";
|
description = "GNU Common Lisp compiler working via GCC";
|
||||||
|
|
Loading…
Reference in a new issue