disable arm exception handling on armv7hl

This commit is contained in:
Tom Callaway 2017-02-27 15:31:19 -05:00
parent b9d697ea63
commit 8033de4eaa
1 changed files with 6 additions and 0 deletions

View File

@ -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 \