Fixes a compiler error

terminate called after throwing an instance of 'std::system_error'
  what():  Enable multithreading to use std::thread: Operation not
permitted

Signed-off-by: Khem Raj <[email protected]>
---
 meta-networking/recipes-devtools/grpc/grpc_1.14.1.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-networking/recipes-devtools/grpc/grpc_1.14.1.bb 
b/meta-networking/recipes-devtools/grpc/grpc_1.14.1.bb
index 784e0d2b4b..7b3f73657c 100644
--- a/meta-networking/recipes-devtools/grpc/grpc_1.14.1.bb
+++ b/meta-networking/recipes-devtools/grpc/grpc_1.14.1.bb
@@ -17,6 +17,9 @@ SRC_URI = 
"git://github.com/grpc/grpc.git;protocol=https;branch=${BRANCH} \
            "
 SRC_URI_append_class-target = " 
file://0001-CMakeLists.txt-Fix-grpc_cpp_plugin-path-during-cross.patch"
 
+# Fixes build with older compilers 4.8 especially on ubuntu 14.04
+CXXFLAGS_append_class-native = " -Wl,--no-as-needed"
+
 inherit cmake
 
 EXTRA_OECMAKE = " \
-- 
2.19.0

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to