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, ...)
This commit is contained in:
parent
fcdfc1c50c
commit
3694b0f892
2 changed files with 6 additions and 0 deletions
|
@ -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")
|
||||
|
|
|
@ -59,4 +59,8 @@ stdenv.mkDerivation {
|
|||
ln -s asm $out/include/asm-x86
|
||||
fi
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
versionForGlibc = "2.6.35";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue