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
@ -110,6 +110,8 @@ stdenv.mkDerivation ({
|
|||||||
(if profilingLibraries
|
(if profilingLibraries
|
||||||
then "--enable-profile"
|
then "--enable-profile"
|
||||||
else "--disable-profile")
|
else "--disable-profile")
|
||||||
|
] ++ stdenv.lib.optionals (cross == null) [
|
||||||
|
"--enable-kernel=${kernelHeaders.versionForGlibc}"
|
||||||
] ++ stdenv.lib.optionals (cross != null) [
|
] ++ stdenv.lib.optionals (cross != null) [
|
||||||
(if cross.withTLS then "--with-tls" else "--without-tls")
|
(if cross.withTLS then "--with-tls" else "--without-tls")
|
||||||
(if cross.float == "soft" then "--without-fp" else "--with-fp")
|
(if cross.float == "soft" then "--without-fp" else "--with-fp")
|
||||||
|
@ -59,4 +59,8 @@ stdenv.mkDerivation {
|
|||||||
ln -s asm $out/include/asm-x86
|
ln -s asm $out/include/asm-x86
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
versionForGlibc = "2.6.35";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user