summary refs log tree commit diff
path: root/pkgs/development/interpreters/unicon-lang
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-06-02 23:50:22 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-06-02 23:50:42 +0100
commit532885f58d40390430507786d710a122c41ec0a3 (patch)
treed569feb7dcf68ede6aeeb791e6b2cdbb698bc924 /pkgs/development/interpreters/unicon-lang
parent4c704d3306ffa945bd40c7765e29dfb9c75f34df (diff)
unicon-lang: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: ../common/ipp.o:(.bss+0x0): multiple definition of `lpath'; tglobals.o:(.bss+0x30): first defined here
Diffstat (limited to 'pkgs/development/interpreters/unicon-lang')
-rw-r--r--pkgs/development/interpreters/unicon-lang/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/unicon-lang/default.nix b/pkgs/development/interpreters/unicon-lang/default.nix
index 6d7088a11cb73..848c9541114e5 100644
--- a/pkgs/development/interpreters/unicon-lang/default.nix
+++ b/pkgs/development/interpreters/unicon-lang/default.nix
@@ -14,6 +14,13 @@ stdenv.mkDerivation {
 
   sourceRoot = ".";
 
+  # Workaround build failure on -fno-common toolchains like upstream
+  # gcc-10. Otherwise build fails as:
+  #   ld: ../common/ipp.o:(.bss+0x0): multiple definition of `lpath'; tglobals.o:(.bss+0x30): first defined here
+  # TODO: remove the workaround once upstream releases version past:
+  #   https://sourceforge.net/p/unicon/unicon/ci/b1a65230233f3825d055aee913b4fdcf178a0eaf/
+  NIX_CFLAGS_COMPILE = "-fcommon";
+
   configurePhase = ''
     case "$(uname -a | sed 's/ /_/g')" in
     Darwin*Version_9*i386) sys=intel_macos;;