From d5bcb30cf910f13f08f4543cfb0d92a5ec103613 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 15 May 2019 22:47:20 +0200 Subject: [PATCH] package/libunwind: add cxx exceptions support If C++ is enabled, enable cxx exceptions, so libunwind will implement _Unwind_GetIP which is used by mono (which already depends on C++) Fixes: - http://autobuild.buildroot.net/results/dbd64c89815d393a4e28b312d74fd80ee6de92da Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/libunwind/libunwind.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/libunwind/libunwind.mk b/package/libunwind/libunwind.mk index 94d1899bd3..26deaa5f00 100644 --- a/package/libunwind/libunwind.mk +++ b/package/libunwind/libunwind.mk @@ -11,7 +11,9 @@ LIBUNWIND_LICENSE_FILES = COPYING LIBUNWIND_LICENSE = MIT LIBUNWIND_AUTORECONF = YES -LIBUNWIND_CONF_OPTS = --disable-tests +LIBUNWIND_CONF_OPTS = \ + --disable-tests \ + $(if $(BR2_INSTALL_LIBSTDCPP),--enable-cxx-exceptions,--disable-cxx-exceptions) ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS),y) LIBUNWIND_DEPENDENCIES = libatomic_ops -- 2.30.2