newlib: evade more of newlib's self-disablement

In https://github.com/NixOS/nixpkgs/pull/266364/files I neglected to
evade one of newlib's other (annoying) self-disablement checks: when
host==target newlib decides it's not in the mood to build itself for
some reason.

Since we have an entire package for newlib (it's no longer part of
gcc) these checks are silly.  So I have evadede the second check as well.

Closes #267859
This commit is contained in:
Adam Joseph 2023-11-16 20:39:55 -08:00
parent f67b20cad6
commit 7444c59c52

View File

@ -41,6 +41,7 @@ stdenv.mkDerivation (finalAttrs: {
# logic was not fixed. So we must disable it.
''
substituteInPlace configure --replace 'noconfigdirs target-newlib target-libgloss' 'noconfigdirs'
substituteInPlace configure --replace 'cross_only="target-libgloss target-newlib' 'cross_only="'
'';