Commit 14b94d44 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

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.
parent ea648ee3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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