0003-fenv.patch 1.2 KB

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