boost: coroutine selects context
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 25 Jun 2018 22:02:36 +0000 (00:02 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 30 Jun 2018 20:24:59 +0000 (22:24 +0200)
Replace the coroutine dependency on context by a select

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/boost/Config.in

index bb53adccdd470c1e9702ec8fc1144fbcac959875..b390c6fce80e21ad38ff3657150d57796b4cae97 100644 (file)
@@ -97,12 +97,18 @@ comment "boost-contract needs a toolchain w/ NPTL"
 
 config BR2_PACKAGE_BOOST_COROUTINE
        bool "boost-coroutine"
-       depends on BR2_PACKAGE_BOOST_CONTEXT
+       depends on BR2_PACKAGE_BOOST_CONTEXT_ARCH_SUPPORTS
+       depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # boost-context
+       select BR2_PACKAGE_BOOST_CONTEXT
        help
          deprecated coroutine library, the non-depricated coroutine2
          library is a header-only library and does not need to be
          selected.
 
+comment "boost-coroutine needs a toolchain not affected by GCC bug 64735"
+       depends on BR2_PACKAGE_BOOST_CONTEXT_ARCH_SUPPORTS
+       depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
+
 config BR2_PACKAGE_BOOST_DATE_TIME
        bool "boost-date_time"
        help