summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-02-24 08:02:22 +0000
committerJörg Thalheim <joerg@thalheim.io>2021-02-24 09:05:34 +0100
commitaaae419aacf0b4737028a5b4f8043da02c88df1d (patch)
tree5bbdcf48a8f20bb7f0c4f6cea6854cb3ace2a7a4
parenta346c68411cc2fe0392e8905f9300fa0973cf1b4 (diff)
downloadnixpkgs-aaae419aacf0b4737028a5b4f8043da02c88df1d.tar
nixpkgs-aaae419aacf0b4737028a5b4f8043da02c88df1d.tar.gz
nixpkgs-aaae419aacf0b4737028a5b4f8043da02c88df1d.tar.bz2
nixpkgs-aaae419aacf0b4737028a5b4f8043da02c88df1d.tar.lz
nixpkgs-aaae419aacf0b4737028a5b4f8043da02c88df1d.tar.xz
nixpkgs-aaae419aacf0b4737028a5b4f8043da02c88df1d.tar.zst
nixpkgs-aaae419aacf0b4737028a5b4f8043da02c88df1d.zip
gdb: fix musl build
fixes #104133

Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
-rw-r--r--pkgs/development/tools/misc/gdb/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix
index 2ce779be568..6f923778975 100644
--- a/pkgs/development/tools/misc/gdb/default.nix
+++ b/pkgs/development/tools/misc/gdb/default.nix
@@ -82,7 +82,8 @@ stdenv.mkDerivation rec {
     "--with-mpfr=${mpfr.dev}"
     "--with-expat" "--with-libexpat-prefix=${expat.dev}"
     "--with-auto-load-safe-path=${builtins.concatStringsSep ":" safePaths}"
-  ] ++ lib.optional (!pythonSupport) "--without-python";
+  ] ++ lib.optional (!pythonSupport) "--without-python"
+    ++ lib.optional stdenv.hostPlatform.isMusl "--disable-nls";
 
   postInstall =
     '' # Remove Info files already provided by Binutils and other packages.