summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-02-06 12:51:20 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-13 16:45:37 +0100
commitbbef0a871dc2d50d3a86b96fa61cef2fd36bd828 (patch)
tree149ef2c949bad685801327c17e5e7081f3f286d0
parent1b7c45d8a951a98f45f55891d342f964f436277a (diff)
downloadbuildroot-bbef0a871dc2d50d3a86b96fa61cef2fd36bd828.tar.gz
buildroot-bbef0a871dc2d50d3a86b96fa61cef2fd36bd828.zip
package/boost: Disable fenv support with uClibc
The boost build system does not recognize the fact that fenv.h is an optional module in uClibc and tries to use it even if UCLIBC_HAS_FENV is disabled. This patch disables fenv support completely when compiling with a uClibc-based toolchain. Fixes http://autobuild.buildroot.net/results/160/160e1b98b204148ecf128144826554b6c523931b/ and many others Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/boost/0006-uclibc-fenv.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/boost/0006-uclibc-fenv.patch b/package/boost/0006-uclibc-fenv.patch
new file mode 100644
index 0000000000..ea10f8cc97
--- /dev/null
+++ b/package/boost/0006-uclibc-fenv.patch
@@ -0,0 +1,26 @@
+Disable fenv.h support for uClibc-based toolchains.
+
+The boost build system does not recognize the fact that fenv.h is an
+optional module in uClibc and tries to use it even if UCLIBC_HAS_FENV
+is disabled. This patch disables fenv support completely when compiling
+with a uClibc-based toolchain. Bug was reported upstream:
+https://svn.boost.org/trac/boost/ticket/11756
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+--- boost_1_60_0.org/boost/config/platform/linux.hpp 2015-12-08 19:55:19.000000000 +0100
++++ boost_1_60_0/boost/config/platform/linux.hpp 2016-02-06 12:35:25.692754553 +0100
+@@ -47,6 +47,13 @@
+ #endif
+
+ //
++// uClibc has no support for fenv.h
++//
++#if defined(__UCLIBC__)
++# define BOOST_NO_FENV_H
++#endif
++
++//
+ // If glibc is past version 2 then we definitely have
+ // gettimeofday, earlier versions may or may not have it:
+ //
OpenPOWER on IntegriCloud