about summary refs log tree commit diff
path: root/pkgs/development/misc/newlib
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-11-16 20:39:55 -0800
committerAdam Joseph <adam@westernsemico.com>2023-11-16 20:41:25 -0800
commit7444c59c5289134a628eab97c52a2e5fdb6b0020 (patch)
tree225be321a3b159fd5831928153808b257260ccac /pkgs/development/misc/newlib
parentf67b20cad6691a5844016876fb4e77082ad7ff34 (diff)
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
Diffstat (limited to 'pkgs/development/misc/newlib')
-rw-r--r--pkgs/development/misc/newlib/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/misc/newlib/default.nix b/pkgs/development/misc/newlib/default.nix
index 8aed144ff65c2..56c644af140ac 100644
--- a/pkgs/development/misc/newlib/default.nix
+++ b/pkgs/development/misc/newlib/default.nix
@@ -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="'
   '';