1 Disable fenv.h in certain configurations
3 The boost build system does not properly test whether fenv.h is
4 available, and if it is, if it supports all the features used by
5 Boost. This causes build failures with uClibc (reported upstream at
6 https://svn.boost.org/trac/boost/ticket/11756) but also with glibc on
7 specific architectures that don't have a full fenv implementation,
8 such as NIOSII or Microblaze.
10 To address this, we forcefully disable the use of fenv support in the
11 affected configurations.
13 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
14 [Thomas: add Microblaze/NIOSII exclusions.]
15 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17 Index: b/boost/config/platform/linux.hpp
18 ===================================================================
19 --- a/boost/config/platform/linux.hpp
20 +++ b/boost/config/platform/linux.hpp
25 +// uClibc has no support for fenv.h, and also a few architectures
26 +// don't have fenv.h support at all (or incomplete support) even with
30 +#if defined(__UCLIBC__) || defined(__nios2__) || defined(__microblaze__)
31 +# define BOOST_NO_FENV_H
35 // If glibc is past version 2 then we definitely have
36 // gettimeofday, earlier versions may or may not have it: