summaryrefslogtreecommitdiffstats
path: root/package/glibc/glibc.mk
diff options
context:
space:
mode:
authorSam bobroff <sam.bobroff@au1.ibm.com>2016-01-28 14:51:23 +1100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-23 23:56:32 +0100
commitfd5bcd0eda8fb21f639c34a09b212e6f9b066a04 (patch)
treeb441ee559a7b85d6395ac71980684949984bb83a /package/glibc/glibc.mk
parent007c2ce917199339c0876227c2e612b11f8e7e15 (diff)
downloadbuildroot-fd5bcd0eda8fb21f639c34a09b212e6f9b066a04.tar.gz
buildroot-fd5bcd0eda8fb21f639c34a09b212e6f9b066a04.zip
package/glibc: set --enable-kernel to match kernel
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>
Diffstat (limited to 'package/glibc/glibc.mk')
-rw-r--r--package/glibc/glibc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
index e60575f62b..4a9ba0ea4e 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)) \
--with-headers=$(STAGING_DIR)/usr/include)
$(GLIBC_ADD_MISSING_STUB_H)
endef
OpenPOWER on IntegriCloud