diff options
author | Gergely Risko <errge@nilcons.com> | 2014-09-04 16:17:39 +0200 |
---|---|---|
committer | Gergely Risko <errge@nilcons.com> | 2014-09-14 21:36:14 +0200 |
commit | c5df246ba926d45492a6f20a8ecd2490d87a4e47 (patch) | |
tree | 5b3e1bb5105efe164be304f5dffb744419db60e4 /pkgs/stdenv/linux | |
parent | fca5d864b6e76f6985aa8a991df64ed94a377333 (diff) | |
download | nixlib-c5df246ba926d45492a6f20a8ecd2490d87a4e47.tar nixlib-c5df246ba926d45492a6f20a8ecd2490d87a4e47.tar.gz nixlib-c5df246ba926d45492a6f20a8ecd2490d87a4e47.tar.bz2 nixlib-c5df246ba926d45492a6f20a8ecd2490d87a4e47.tar.lz nixlib-c5df246ba926d45492a6f20a8ecd2490d87a4e47.tar.xz nixlib-c5df246ba926d45492a6f20a8ecd2490d87a4e47.tar.zst nixlib-c5df246ba926d45492a6f20a8ecd2490d87a4e47.zip |
Cleanup perl logic in stdenvLinux
Make thread disabling explicit. This changes the semantics of the perl derivation, so on other platforms it may require setting enableThreading = false This commit doesn't change the derivation or out hash of stdenvLinux.
Diffstat (limited to 'pkgs/stdenv/linux')
-rw-r--r-- | pkgs/stdenv/linux/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix index b5e92fb8e1cf..0dd7271b1b62 100644 --- a/pkgs/stdenv/linux/default.nix +++ b/pkgs/stdenv/linux/default.nix @@ -169,8 +169,12 @@ rec { binutils = pkgs.binutils.override { gold = false; }; inherit (stage0.pkgs) glibc; - # TODO(errge) This was accidentally like this historically, most probably not needed - perl = pkgs.perl.override { stdenv = stage1.stdenv.override { extraAttrs = { inherit platform; }; }; }; + # A threaded perl build needs glibc/libpthread_nonshared.a, + # which is not included in bootstrapTools, so disable threading. + # This is not an issue for the final stdenv, because this perl + # won't be included in the final stdenv and won't be exported to + # top-level pkgs as an override either. + perl = pkgs.perl.override { enableThreading = false; }; }; }; |