binutils: only autoconf on Darwin

This commit is contained in:
Bernardo Meurer 2022-03-28 19:11:33 -07:00
parent 022e81d7f1
commit c981094480
No known key found for this signature in database
GPG key ID: F4C0D53B8D14C246

View file

@ -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