From efe65221048c948e112259870536120fd6a21691 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 17 Jan 2023 23:35:20 -0800 Subject: [PATCH] gengetopt: Use std=c++14 It needs std::unary_operator which is gone in c++17, until it is forward ported to work with c++17, pin to c++14 ../../gengetopt-2.23/src/gm_utils.h:132:35: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? | struct pair_print_f : public std::unary_function | ~~~~~^~~~~~~~~~~~~~ Signed-off-by: Khem Raj --- meta-oe/recipes-support/gengetopt/gengetopt_2.23.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-oe/recipes-support/gengetopt/gengetopt_2.23.bb b/meta-oe/recipes-support/gengetopt/gengetopt_2.23.bb index 52c1016335..4d97b1a419 100644 --- a/meta-oe/recipes-support/gengetopt/gengetopt_2.23.bb +++ b/meta-oe/recipes-support/gengetopt/gengetopt_2.23.bb @@ -13,4 +13,6 @@ SRC_URI[sha256sum] = "b941aec9011864978dd7fdeb052b1943535824169d2aa2b0e7eae9ab80 inherit autotools texinfo +CXXFLAGS += "-std=c++14" + BBCLASSEXTEND = "native nativesdk"