From 7e4dcb6c2b680f59eac06f57fc41a7c1342f7097 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 22 Apr 2009 17:44:44 +0000 Subject: [PATCH] * Urgh. Perl is built during the stdenv bootstrap, where we don't have libpthread. So don't build with thread support there. svn path=/nixpkgs/branches/stdenv-updates/; revision=15253 --- pkgs/development/interpreters/perl-5.10/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/perl-5.10/default.nix b/pkgs/development/interpreters/perl-5.10/default.nix index 8103a2f8c902..2acae30889e5 100644 --- a/pkgs/development/interpreters/perl-5.10/default.nix +++ b/pkgs/development/interpreters/perl-5.10/default.nix @@ -23,7 +23,8 @@ stdenv.mkDerivation { # $out/lib/perl5 - this is the general default, but because $out # contains the string "perl", Configure would select $out/lib. configureFlags = '' - -de -Dcc=gcc -Uinstallusrbinperl -Dinstallstyle=lib/perl5 -Duseshrplib -Dusethreads + -de -Dcc=gcc -Uinstallusrbinperl -Dinstallstyle=lib/perl5 -Duseshrplib + ${if stdenv ? glibc then "-Dusethreads" else ""} ''; configureScript = "./Configure";