[oe] [meta-oe][PATCH] cpprest: Fix build failure with gcc 8

Adrian Bunk bunk at stusta.de
Tue Jul 2 16:35:31 UTC 2019


The workaround for gcc 9 broke building with gcc 8:
     cc1plus: error: -Werror=deprecated-copy: no option -Wdeprecated-copy
     cc1plus: error: -Werror=redundant-move: no option -Wredundant-move
     ninja: build stopped: subcommand failed.

-Werror is often problematic in distribution builds,
disable it globally and permanently.

Signed-off-by: Adrian Bunk <bunk at stusta.de>
---
 meta-oe/recipes-support/cpprest/cpprest_2.10.13.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta-oe/recipes-support/cpprest/cpprest_2.10.13.bb b/meta-oe/recipes-support/cpprest/cpprest_2.10.13.bb
index 070451211..3e42a002e 100644
--- a/meta-oe/recipes-support/cpprest/cpprest_2.10.13.bb
+++ b/meta-oe/recipes-support/cpprest/cpprest_2.10.13.bb
@@ -18,6 +18,4 @@ S = "${WORKDIR}/git"
 
 inherit cmake pkgconfig
 
-# Temporary until https://github.com/Microsoft/cpprestsdk/issues/1099
-# is fixed properly
-CXXFLAGS += "-Wno-error=deprecated-copy -Wno-error=redundant-move"
+CXXFLAGS += "-Wno-error"
-- 
2.17.1



More information about the Openembedded-devel mailing list