summary refs log tree commit diff
path: root/pkgs/stdenv
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-05-02 01:02:57 +0300
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-05-02 01:02:57 +0300
commitb017e29705ff6bf879bd4c56c04ae4f1123272ef (patch)
tree71d7bf8a8d5fe47ce499de7f4f803419aac93058 /pkgs/stdenv
parentb87aa622984386d68666ad966270e37a1df8c4c1 (diff)
downloadnixpkgs-b017e29705ff6bf879bd4c56c04ae4f1123272ef.tar
nixpkgs-b017e29705ff6bf879bd4c56c04ae4f1123272ef.tar.gz
nixpkgs-b017e29705ff6bf879bd4c56c04ae4f1123272ef.tar.bz2
nixpkgs-b017e29705ff6bf879bd4c56c04ae4f1123272ef.tar.lz
nixpkgs-b017e29705ff6bf879bd4c56c04ae4f1123272ef.tar.xz
nixpkgs-b017e29705ff6bf879bd4c56c04ae4f1123272ef.tar.zst
nixpkgs-b017e29705ff6bf879bd4c56c04ae4f1123272ef.zip
stdenv: always update config script on loongarch64-linux
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r--pkgs/stdenv/linux/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix
index 17759d9fa1d..6a743f60c9b 100644
--- a/pkgs/stdenv/linux/default.nix
+++ b/pkgs/stdenv/linux/default.nix
@@ -310,6 +310,10 @@ in
       # top-level pkgs as an override either.
       perl = super.perl.override { enableThreading = false; enableCrypt = false; };
     };
+
+    # `gettext` comes with obsolete config.sub/config.guess that don't recognize LoongArch64.
+    extraNativeBuildInputs =
+      lib.optional (localSystem.isLoongArch64) prevStage.updateAutotoolsGnuConfigScriptsHook;
   })
 
   # First rebuild of gcc; this is linked against all sorts of junk
@@ -387,6 +391,10 @@ in
             '';
           });
       };
+
+      # `gettext` comes with obsolete config.sub/config.guess that don't recognize LoongArch64.
+      extraNativeBuildInputs =
+        lib.optional (localSystem.isLoongArch64) prevStage.updateAutotoolsGnuConfigScriptsHook;
     })
 
   # 2nd stdenv that contains our own rebuilt binutils and is used for
@@ -469,9 +477,10 @@ in
 
     };
 
+    # `gettext` comes with obsolete config.sub/config.guess that don't recognize LoongArch64.
     # `libtool` comes with obsolete config.sub/config.guess that don't recognize Risc-V.
     extraNativeBuildInputs =
-      lib.optional (localSystem.isRiscV) prevStage.updateAutotoolsGnuConfigScriptsHook;
+      lib.optional (localSystem.isLoongArch64 || localSystem.isRiscV) prevStage.updateAutotoolsGnuConfigScriptsHook;
   })