From 14b94d44552e8af348a02b14c8a90d0ebbeef376 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 28 Mar 2025 15:51:46 +0100 Subject: [PATCH] binutils: build outside source tree This will allow us to configure and build binutils multiple times, to make gas available for multiple targets in binutils-unwrapped-all-targets. --- pkgs/development/tools/misc/binutils/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/tools/misc/binutils/default.nix b/pkgs/development/tools/misc/binutils/default.nix index 467884cfd2e1..6c4126275d18 100644 --- a/pkgs/development/tools/misc/binutils/default.nix +++ b/pkgs/development/tools/misc/binutils/default.nix @@ -147,6 +147,10 @@ stdenv.mkDerivation (finalAttrs: { for i in binutils/Makefile.in gas/Makefile.in ld/Makefile.in gold/Makefile.in; do sed -i "$i" -e 's|ln |ln -s |' done + + configureScript="$PWD/configure" + mkdir $NIX_BUILD_TOP/build + cd $NIX_BUILD_TOP/build ''; # As binutils takes part in the stdenv building, we don't want references