From 8033de4eaa42dae81c89b88797312f65ebaa814b Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Feb 27 2017 20:31:19 +0000 Subject: disable arm exception handling on armv7hl --- diff --git a/libcxxabi.spec b/libcxxabi.spec index 6a547c7..f27e216 100644 --- a/libcxxabi.spec +++ b/libcxxabi.spec @@ -43,6 +43,12 @@ cd _build %global optflags %(echo %{optflags} | sed 's/-march=z9-109 /-march=z10 /') %endif %endif + +%ifarch armv7hl +# disable ARM exception handling +sed -i 's|LIBCXXABI_ARM_EHABI 1|LIBCXXABI_ARM_EHABI 0|g' include/__cxxabi_config.h +%endif + export LDFLAGS="-Wl,--build-id" %cmake .. \ -DCMAKE_C_COMPILER=/usr/bin/clang \