From c260fee5163cdd3d7eb01576f606e83dcf6f7808 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Tue, 31 Aug 2021 14:47:13 -0300 Subject: [PATCH] libs/libxx: Enforce RTTI for building libcxxabi It is okay for the application to be built without RTTI (-fno-rrti), but libcxxabi requires RTTI at least for the library. Signed-off-by: Gustavo Henrique Nihei --- libs/libxx/libcxxabi.defs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/libxx/libcxxabi.defs b/libs/libxx/libcxxabi.defs index 4e4b5b51a2..c1ed95192a 100644 --- a/libs/libxx/libcxxabi.defs +++ b/libs/libxx/libcxxabi.defs @@ -55,6 +55,9 @@ else CPPSRCS += cxa_noexception.cpp endif +# RTTI is required for building the libcxxabi library +CXXFLAGS += -frtti + DEPPATH += --dep-path libcxxabi/src VPATH += libcxxabi/src