package/glibc: set --enable-kernel to match kernel
PATCH 1/1 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.
---
package/glibc/glibc.mk | 1 + 1 file changed, 1 insertion(+)
package/glibc/glibc.mk +1 -0
@@ -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
Signature · 1 line
2.1.0
PATCH 1/1 package/glibc: set --enable-kernel to match kernel
Quoted 10 lines · Sam Bobroff
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 <[email protected]>
Built+boot tested against what we use for OpenPower firmware.
Signature · 2 lines
Stewart Smith OPAL Architect, IBM.
Thomas Petazzoni
AppliedPATCH 1/1 package/glibc: set --enable-kernel to match kernel
In reply to Sam BobroffDear Sam Bobroff,
Quoted 11 lines · Sam Bobroff
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 <[email protected]>---
Applied to next, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com