[Buildroot] [Question] How to depend on a feature in libc

Arnout Vandecappelle arnout at mind.be
Fri Aug 28 07:17:12 UTC 2020



On 18/08/2020 19:26, Avraham Shukron wrote:
> I want to add a package that has an optional feature that requires the
> <fenv.h> header from C99.
> Apparently, this module is optional in uClibc, and it is not included in
> the default config.

 Note that even if it is enabled, its implementation is incomplete.

> I want my package's Config.in file to define a boolean config entry
> that depends on
> whether or not the selected libc has <fenv.h>.
> 
> How can I do that?

 There is no such option. Cfr. e.g. the spidermonkey package: it is simply
disabled on uClibc due to missing fenv support.

 There are also a few packages where we patch out the fenv requirement. e.g.
boost, pixman.

 Regards,
 Arnout


More information about the buildroot mailing list