From 2b74b14cc9deb274153063ee2f157fe0d858e563 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Sat, 31 Oct 2015 21:39:29 +0000 Subject: classes/palmtop: add -fpermissive to CXXFLAGS Opie's qpeapplication.cpp and Qt/Embedded's qmemorymanager_qws.h contain casts that modern GCC doesn't like and I don't plan to go and fix them right now; add -fpermissive to CXXFLAGS to make these errors back into warnings. Signed-off-by: Paul Eggleton --- classes/palmtop.bbclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/palmtop.bbclass b/classes/palmtop.bbclass index 059a058..d80c00f 100644 --- a/classes/palmtop.bbclass +++ b/classes/palmtop.bbclass @@ -9,6 +9,10 @@ inherit qmake palmtop-defs +# A header from Qt/Embedded that almost all Opie code includes contains +# casts that fail to build with modern GCC without this set +CXXFLAGS += "-fpermissive" + # special case for DISTRO = sharprom CPP_SUPPORT_LIB = "LIBS-=-lstdc++ LIBS+=-lsupc++" CPP_SUPPORT_LIB_sharprom-compatible = "LIBS+=-lstdc++" -- cgit 1.2.3-korg