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:
Sergei Trofimovich 2022-06-08 08:37:46 +01:00
parent 064a605987
commit b5644dfa57

View File

@ -40,7 +40,10 @@ stdenv.mkDerivation rec {
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; {
description = "GNU Common Lisp compiler working via GCC";