diff options
author | Peter Simons <simons@cryp.to> | 2010-08-08 18:51:42 +0000 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2010-08-08 18:51:42 +0000 |
commit | 1a6039cb4575ad13a94163264b73567b51a57f84 (patch) | |
tree | ba0a15912581bc496cf085a0fe4b5e6ae4b2c889 /pkgs/development/libraries/glibc-2.5 | |
parent | 089ee5da114520b775e9d17d7c456356966c97dd (diff) |
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
Diffstat (limited to 'pkgs/development/libraries/glibc-2.5')
-rw-r--r-- | pkgs/development/libraries/glibc-2.5/builder.sh | 2 | ||||
-rw-r--r-- | pkgs/development/libraries/glibc-2.5/default.nix | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/glibc-2.5/builder.sh b/pkgs/development/libraries/glibc-2.5/builder.sh index 695a3a1ab3dab..4cd0132e37008 100644 --- a/pkgs/development/libraries/glibc-2.5/builder.sh +++ b/pkgs/development/libraries/glibc-2.5/builder.sh @@ -38,7 +38,7 @@ postConfigure() { postInstall() { if test -n "$installLocales"; then - make localedata/install-locales + make -j${NIX_BUILD_CORES:-1} -l${NIX_BUILD_CORES:-1} localedata/install-locales fi rm $out/etc/ld.so.cache (cd $out/include && ln -s $kernelHeaders/include/* .) || exit 1 diff --git a/pkgs/development/libraries/glibc-2.5/default.nix b/pkgs/development/libraries/glibc-2.5/default.nix index abfc3d0f43955..83447d8fe8a97 100644 --- a/pkgs/development/libraries/glibc-2.5/default.nix +++ b/pkgs/development/libraries/glibc-2.5/default.nix @@ -30,6 +30,8 @@ stdenv.mkDerivation { # the symbol __i686.get_pc_thunk.dx to be mangled. NIX_CFLAGS_COMPILE = "-U__i686"; + enableParallelBuilding = true; + meta = { homepage = http://www.gnu.org/software/libc/; description = "The GNU C Library"; |