summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/gcl
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-06-08 08:37:46 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-06-08 08:38:15 +0100
commitb5644dfa57ab04fd40ecd3080bd67c475a199c3e (patch)
tree967c94c8cf9c274aebd656a6d1bcb89c5edd3ac8 /pkgs/development/compilers/gcl
parent064a605987c0ff66db54b3caa185542c1115dee2 (diff)
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
Diffstat (limited to 'pkgs/development/compilers/gcl')
-rw-r--r--pkgs/development/compilers/gcl/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcl/default.nix b/pkgs/development/compilers/gcl/default.nix
index 6d0471dacbb5..e6ccc2598035 100644
--- a/pkgs/development/compilers/gcl/default.nix
+++ b/pkgs/development/compilers/gcl/default.nix
@@ -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";