board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / boost / 0003-fenv.patch
blob95c769aea2a711c838bcebcad5fd6857f9f55921
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
21 @@ -47,6 +47,16 @@
22 #endif
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
27 +// glibc.
29 +//
30 +#if defined(__UCLIBC__) || defined(__nios2__) || defined(__microblaze__)
31 +# define BOOST_NO_FENV_H
32 +#endif
34 +//
35 // If glibc is past version 2 then we definitely have
36 // gettimeofday, earlier versions may or may not have it: