2006-10-23 14:27:34 +00:00
|
|
|
{ stdenv, fetchurl, kernelHeaders
|
|
|
|
, installLocales ? true
|
|
|
|
, profilingLibraries ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "glibc-2.5";
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://ftp.gnu.org/gnu/glibc/glibc-2.5.tar.bz2;
|
|
|
|
md5 = "1fb29764a6a650a4d5b409dda227ac9f";
|
|
|
|
};
|
|
|
|
|
2011-01-27 13:35:53 +00:00
|
|
|
patches = [ ./glibc-pwd.patch ./glibc-getcwd-param-MAX.patch ./glibc-inline.patch
|
|
|
|
./x86-fnstsw.patch ./binutils-ld.patch ./make-3-82-fix.patch ];
|
2006-10-23 14:27:34 +00:00
|
|
|
|
|
|
|
inherit kernelHeaders installLocales;
|
|
|
|
|
2007-05-24 13:33:23 +00:00
|
|
|
inherit (stdenv) is64bit;
|
|
|
|
|
2006-10-23 14:27:34 +00:00
|
|
|
configureFlags="--enable-add-ons
|
|
|
|
--with-headers=${kernelHeaders}/include
|
2009-06-24 20:10:51 +00:00
|
|
|
--disable-sanity-checks
|
2006-10-23 14:27:34 +00:00
|
|
|
${if profilingLibraries then "--enable-profile" else "--disable-profile"}";
|
2009-06-24 20:10:51 +00:00
|
|
|
|
|
|
|
# Workaround for this bug:
|
|
|
|
# http://sourceware.org/bugzilla/show_bug.cgi?id=411
|
|
|
|
# I.e. when gcc is compiled with --with-arch=i686, then the
|
|
|
|
# preprocessor symbol `__i686' will be defined to `1'. This causes
|
|
|
|
# the symbol __i686.get_pc_thunk.dx to be mangled.
|
|
|
|
NIX_CFLAGS_COMPILE = "-U__i686";
|
|
|
|
|
Enable parallel building of gcc, glibc, gmp, mpfr, ncurses, coreutils, perl, python, git, and qt4.
If a build expressions has set "enableParallelBuilding = true", then the
generic builder may utilize more than one CPU core to build that particular
expression. This feature works out of the box for GNU Make. Expressions that
use other build drivers like Boost.Jam or SCons have to specify appropriate
flags such as "-j${NIX_BUILD_CORES}" themselves.
svn path=/nixpkgs/trunk/; revision=23042
2010-08-08 18:51:42 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-06-24 20:10:51 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.gnu.org/software/libc/;
|
|
|
|
description = "The GNU C Library";
|
|
|
|
};
|
2006-10-23 14:27:34 +00:00
|
|
|
}
|