[Buildroot] [git commit] package/glibc: set --enable-kernel to match kernel

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Feb 23 22:56:32 UTC 2016

commit: https://git.buildroot.net/buildroot/commit/?id=fd5bcd0eda8fb21f639c34a09b212e6f9b066a04
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Glibc is currently configured without any "--enable-kernel" option.
This causes it to use the oldest possible kernel API, slowing it down
and preventing it from using any kernel features from later versions.

Since we are likely building a kernel and matching glibc together,
backwards compatability is probably unnecessary so this patch
unconditionally configures glibc with --enable-kernel set to

Signed-off-by: Sam Bobroff <sam.bobroff at au1.ibm.com>
Tested-by: Stewart Smith <stewart at linux.vnet.ibm.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
 package/glibc/glibc.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
index e60575f..4a9ba0e 100644
--- a/package/glibc/glibc.mk
+++ b/package/glibc/glibc.mk
@@ -96,6 +96,7 @@ define GLIBC_CONFIGURE_CMDS
 		--disable-profile \
 		--without-gd \
 		--enable-obsolete-rpc \
+		--enable-kernel=$(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST)) \

More information about the buildroot mailing list