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.
This commit is contained in:
Alyssa Ross
2025-06-05 15:12:05 +02:00
parent ea648ee3d7
commit 14b94d4455
@@ -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