diff -aur -x configure boost_1_65_0-orig/boost/config/stdlib/libstdcpp3.hpp boost_1_65_0/boost/config/stdlib/libstdcpp3.hpp
--- boost_1_65_0-orig/boost/config/stdlib/libstdcpp3.hpp	2017-08-19 19:49:40.000000000 +0300
+++ boost_1_65_0/boost/config/stdlib/libstdcpp3.hpp	2019-05-16 19:56:36.179173749 +0300
@@ -37,7 +37,8 @@
         || defined(_GLIBCXX_HAS_GTHREADS) \
         || defined(_WIN32) \
         || defined(_AIX) \
-        || defined(__HAIKU__)
+        || defined(__HAIKU__) \
+        || defined(__EMBOX__)
       //
       // If the std lib has thread support turned on, then turn it on in Boost
       // as well.  We do this because some gcc-3.4 std lib headers define _REENTANT
diff -aur -x configure boost_1_65_0-orig/tools/build/src/tools/gcc.jam boost_1_65_0/tools/build/src/tools/gcc.jam
--- boost_1_65_0-orig/tools/build/src/tools/gcc.jam	2017-08-19 19:49:50.000000000 +0300
+++ boost_1_65_0/tools/build/src/tools/gcc.jam	2019-05-16 19:53:41.381039305 +0300
@@ -1035,7 +1035,7 @@
             case *bsd    : option = -pthread ;  # There is no -lrt on BSD.
             case sgi     : # gcc on IRIX does not support multi-threading.
             case darwin  : # No threading options.
-            case *       : option = -pthread ; libs = rt ;
+            case *       : # No threading options.
         }
 
         if $(option)
