summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-01-08 15:05:57 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2020-01-08 15:05:57 -0500
commit2c6eaef83ec8168cbf57fa76fc05ea2bf5eea17b (patch)
tree8a4b9771b74ee656eb23c847695632b681babdf6 /pkgs
parent0b7b588de246397b6c5e717e68e7015e7a9a0766 (diff)
downloadnixpkgs-2c6eaef83ec8168cbf57fa76fc05ea2bf5eea17b.tar
nixpkgs-2c6eaef83ec8168cbf57fa76fc05ea2bf5eea17b.tar.gz
nixpkgs-2c6eaef83ec8168cbf57fa76fc05ea2bf5eea17b.tar.bz2
nixpkgs-2c6eaef83ec8168cbf57fa76fc05ea2bf5eea17b.tar.lz
nixpkgs-2c6eaef83ec8168cbf57fa76fc05ea2bf5eea17b.tar.xz
nixpkgs-2c6eaef83ec8168cbf57fa76fc05ea2bf5eea17b.tar.zst
nixpkgs-2c6eaef83ec8168cbf57fa76fc05ea2bf5eea17b.zip
gnustep/base: add libiberty to linker flags
In https://github.com/NixOS/nixpkgs/issues/76927, we found that
xmemdup is missing when compiling some conftest for gnustep-base. It’s
unclear why this happens but it appears to be from the update to gcc9.
Adding libiberty gives us that symbol and fixes things. What’s less
clear is why this happens to begin with.

Fixes #76927
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/desktops/gnustep/base/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/desktops/gnustep/base/default.nix b/pkgs/desktops/gnustep/base/default.nix
index e96dbf0b6fc..87cded31e5f 100644
--- a/pkgs/desktops/gnustep/base/default.nix
+++ b/pkgs/desktops/gnustep/base/default.nix
@@ -9,6 +9,7 @@
 , libobjc, libgcrypt
 , icu
 , pkgconfig, portaudio
+, libiberty
 }:
 let
   version = "1.26.0";
@@ -30,8 +31,14 @@ gsmakeDerivation {
     libobjc libgcrypt
     icu
     portaudio
+    libiberty
   ];
   patches = [ ./fixup-paths.patch ];
+
+  # Bump to gcc9 has give missing xmemdup symbols. Need libiberty here
+  # to resolve it, unclear why. See #76927 for more info
+  NIX_LDFLAGS = "-liberty";
+
   meta = {
     description = "An implementation of AppKit and Foundation libraries of OPENSTEP and Cocoa";
   };