Merge pull request #176855 from trofi/workaround-fno-common-for-gcl

gcl: add -fcommon workaround
This commit is contained in:
7c6f434c
2022-06-08 11:47:06 +00:00
committed by GitHub
+4 -1
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";