about summary refs log tree commit diff
path: root/pkgs/development/libraries/glibc
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2012-08-19 13:22:54 +0200
committerLluís Batlle i Rossell <viric@viric.name>2012-08-19 13:25:40 +0200
commit3694b0f892867a7b5d714eb7efa6532683a4bdc4 (patch)
tree09e1a108685baae5a95f731b0bed39ae03f5634c /pkgs/development/libraries/glibc
parentfcdfc1c50c18e2107b72998e69b1d0bc1c3daa47 (diff)
downloadnixlib-3694b0f892867a7b5d714eb7efa6532683a4bdc4.tar
nixlib-3694b0f892867a7b5d714eb7efa6532683a4bdc4.tar.gz
nixlib-3694b0f892867a7b5d714eb7efa6532683a4bdc4.tar.bz2
nixlib-3694b0f892867a7b5d714eb7efa6532683a4bdc4.tar.lz
nixlib-3694b0f892867a7b5d714eb7efa6532683a4bdc4.tar.xz
nixlib-3694b0f892867a7b5d714eb7efa6532683a4bdc4.tar.zst
nixlib-3694b0f892867a7b5d714eb7efa6532683a4bdc4.zip
glibc: setting --enable-kernel=2.6.35
It was taking 2.4.0 as default, therefore, not using syscalls over 2.4.0
We may see performance improvements (openat, ...)
Diffstat (limited to 'pkgs/development/libraries/glibc')
-rw-r--r--pkgs/development/libraries/glibc/2.13/common.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/glibc/2.13/common.nix b/pkgs/development/libraries/glibc/2.13/common.nix
index 535fb373e04e..5db9e08e3f92 100644
--- a/pkgs/development/libraries/glibc/2.13/common.nix
+++ b/pkgs/development/libraries/glibc/2.13/common.nix
@@ -110,6 +110,8 @@ stdenv.mkDerivation ({
     (if profilingLibraries
      then "--enable-profile"
      else "--disable-profile")
+  ] ++ stdenv.lib.optionals (cross == null) [
+    "--enable-kernel=${kernelHeaders.versionForGlibc}"
   ] ++ stdenv.lib.optionals (cross != null) [
     (if cross.withTLS then "--with-tls" else "--without-tls")
     (if cross.float == "soft" then "--without-fp" else "--with-fp")