From ec566ebdc02f1859014ef3674869ccebeff5ac7e Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 29 Mar 2026 19:57:33 -0700 Subject: [PATCH] gdb: let configure auto-detect in-process agent support Stop explicitly enabling --enable-inprocess-agent. GDB's configure already defaults to disabling IPA on platforms without an implementation (like RISC-V and LoongArch64), so forcing it on just breaks the build there. Only pass --disable-inprocess-agent for static builds, where it can never work. --- pkgs/by-name/gd/gdb/package.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/by-name/gd/gdb/package.nix b/pkgs/by-name/gd/gdb/package.nix index a18b5168e382..3bc18a548c1d 100644 --- a/pkgs/by-name/gd/gdb/package.nix +++ b/pkgs/by-name/gd/gdb/package.nix @@ -193,10 +193,8 @@ stdenv.mkDerivation (finalAttrs: { (withFeatureAs true "auto-load-safe-path" (builtins.concatStringsSep ":" safePaths)) (withFeature enableDebuginfod "debuginfod") (enableFeature (!stdenv.hostPlatform.isMusl) "nls") - (enableFeature ( - !stdenv.hostPlatform.isStatic && !stdenv.hostPlatform.isLoongArch64 - ) "inprocess-agent") ] + ++ optional stdenv.hostPlatform.isStatic "--disable-inprocess-agent" ++ optional (!hostCpuOnly) "--enable-targets=all" # Workaround for Apple Silicon, "--target" must be "faked", see eg: https://github.com/Homebrew/homebrew-core/pull/209753 ++ optional (