]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/glibc: set --enable-kernel to match kernel
authorSam bobroff <sam.bobroff@au1.ibm.com>
Thu, 28 Jan 2016 03:51:23 +0000 (14:51 +1100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 23 Feb 2016 22:56:32 +0000 (23:56 +0100)
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
BR2_TOOLCHAIN_HEADERS_AT_LEAST.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Tested-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/glibc/glibc.mk

index e60575f62bd6ae4d4a781c2adb78112a8094608a..4a9ba0ea4e3a3bbc45faa4e9da48ad365de05e39 100644 (file)
@@ -96,6 +96,7 @@ define GLIBC_CONFIGURE_CMDS
                --disable-profile \
                --without-gd \
                --enable-obsolete-rpc \
+               --enable-kernel=$(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST)) \
                --with-headers=$(STAGING_DIR)/usr/include)
        $(GLIBC_ADD_MISSING_STUB_H)
 endef