[OE-core] Should disabling features in glibc also disable the corresponding headers?

Khem Raj raj.khem at gmail.com
Tue Apr 14 17:40:45 UTC 2015


> On Apr 14, 2015, at 1:25 PM, Tanu Kaskinen <tanu.kaskinen at linux.intel.com> wrote:
> 
> Hello,
> 
> oe-core's version of glibc allows configuring out some libc features. Currently, if a feature is disabled in glibc, glibc still installs the header for that feature. This means that applications using glibc can't rely on checking just the header presence in their configure scripts, they also need to check whether the function implementation is present. Is there some good reason why glibc works that way, or should glibc be fixed so that disabling a feature disables the header too?
> 
> At least alsa-lib requires patching[1] for this reason, and I wouldn't be surprised if there were many other similar cases in other packages.
> 
> [1] http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch
> 

checking for functions is the right thing. And it would fail to link if you passed configure check.

> -- 
> Tanu




More information about the Openembedded-core mailing list