about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
author7c6f434c <7c6f434c@mail.ru>2022-06-08 11:47:06 +0000
committerGitHub <noreply@github.com>2022-06-08 11:47:06 +0000
commit1514e060293beb4f646c9989cf588ac3df786468 (patch)
tree5e4ddeb5b12f05fd2e41bb99e3b1e3b7c773d0f1 /pkgs
parent6b94629394148771699231cbac523deedd7c64ed (diff)
parentb5644dfa57ab04fd40ecd3080bd67c475a199c3e (diff)
Merge pull request #176855 from trofi/workaround-fno-common-for-gcl
gcl: add -fcommon workaround
Diffstat (limited to 'pkgs')
-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 6d0471dacbb50..e6ccc2598035b 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";