2007-08-18 20:04:19 +01:00
|
|
|
{ stdenv, fetchurl, kernelHeaders
|
|
|
|
,perl
|
2007-08-18 17:15:09 +01:00
|
|
|
, installLocales ? true
|
|
|
|
, profilingLibraries ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-08-18 20:04:19 +01:00
|
|
|
name = "glibc-2.6.1-nptl";
|
2007-08-18 17:15:09 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2007-08-18 20:04:19 +01:00
|
|
|
src =
|
|
|
|
fetchurl {
|
|
|
|
url = http://ftp.gnu.org/gnu/glibc/glibc-2.6.1.tar.bz2;
|
|
|
|
sha256 = "08pcfsi9zpikjakljklks2ln3hn7544cr9br4kbh5kx27cy3mv9x";
|
|
|
|
};
|
2007-08-18 17:15:09 +01:00
|
|
|
|
|
|
|
patches = [ ./glibc-pwd.patch ./glibc-getcwd-param-MAX.patch ];
|
|
|
|
|
|
|
|
inherit kernelHeaders installLocales;
|
|
|
|
|
|
|
|
inherit (stdenv) is64bit;
|
|
|
|
|
2007-08-18 20:04:19 +01:00
|
|
|
buildInputs=[perl];
|
|
|
|
|
2007-08-18 17:15:09 +01:00
|
|
|
# `--with-tls --without-__thread' enables support for TLS but causes
|
|
|
|
# it not to be used. Required if we don't want to barf on 2.4
|
|
|
|
# kernels. Or something.
|
|
|
|
configureFlags="--enable-add-ons
|
|
|
|
--with-headers=${kernelHeaders}/include
|
|
|
|
${if profilingLibraries then "--enable-profile" else "--disable-profile"}";
|
|
|
|
}
|