From c9810944803485ade690d89b12527e330f2fa1b8 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Mon, 28 Mar 2022 19:11:33 -0700 Subject: [PATCH] binutils: only autoconf on Darwin --- pkgs/development/tools/misc/binutils/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/binutils/default.nix b/pkgs/development/tools/misc/binutils/default.nix index 7953522d41ec..67a5568ee64a 100644 --- a/pkgs/development/tools/misc/binutils/default.nix +++ b/pkgs/development/tools/misc/binutils/default.nix @@ -110,7 +110,7 @@ stdenv.mkDerivation { inherit noSysDirs; - preConfigure = '' + preConfigure = (lib.optionalString targetPlatform.isDarwin '' for i in */configure.ac; do pushd "$(dirname "$i")" echo "Running autoreconf in $PWD" @@ -119,7 +119,7 @@ stdenv.mkDerivation { autoconf popd done - + '') + '' # Clear the default library search path. if test "$noSysDirs" = "1"; then echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt