В соответствии с документацией,
‘--enable-kernel=version’
This option is currently only useful on GNU/Linux systems. The version parameter should have the form X.Y.Z and describes the smallest version of the Linux kernel the generated library is expected to support. The higher the version number is, the less compatibility code is added, and the faster the code gets.
Делаю
$ ../glibc-2.22/configure --prefix=/usr --libexecdir=/usr/lib --enable-kernel=2.2.26
#include <stdio.h>
#include <gnu/libc-version.h>
int main () {
puts (gnu_get_libc_version ());
return 0;}
$ gcc -static version.c -o version /home/alex/src/glibc-build/libc.a
$ gcc -static version.c -o version
Но при запуске на старой машине (версия ядра=2.2.26) хеллоуворлда, собранного с glibc 2.22, я получаю ошибку:
FATAL: kernel too old