[Buildroot] [PATCH 2/2] boost: context needs C++11
Fabrice Fontaine
fontaine.fabrice at gmail.com
Mon Aug 20 16:55:55 UTC 2018
Without this flag, mutex is not always correctly detected with gcc 4.x
or 5.x. As a result, boost_thread is wrongly selected by boost_context.
Fixes:
- http://autobuild.buildroot.net/results/fb046c04fe18bec973d120e4ab33971f32ba5769
- http://autobuild.buildroot.net/results/99f1a255b78a973faeb8bf3b94d78efc54426a8b
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
package/boost/boost.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/boost/boost.mk b/package/boost/boost.mk
index 14f6162003..a09dd3cf45 100644
--- a/package/boost/boost.mk
+++ b/package/boost/boost.mk
@@ -61,6 +61,11 @@ else
BOOST_FLAGS += --without-icu
endif
+# boost-context needs C++11
+ifeq ($(BR2_PACKAGE_BOOST_CONTEXT),y)
+BOOST_TARGET_CXXFLAGS += -std=c++11
+endif
+
ifeq ($(BR2_PACKAGE_BOOST_IOSTREAMS),y)
BOOST_DEPENDENCIES += bzip2 zlib
endif
--
2.14.1
More information about the buildroot
mailing list