From e6f7f8f417be5d1e7bb59291b32feffe44e0ea30 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Fri, 17 Dec 2021 17:59:50 +0100 Subject: [PATCH] Workaround armv7hl build failure due to -mfpu=vfpv3-d16 appearing after mfpu=neon --- tesseract.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tesseract.spec b/tesseract.spec index 600f496..7661716 100644 --- a/tesseract.spec +++ b/tesseract.spec @@ -57,6 +57,10 @@ The %{name}-tools package contains tools for training %{name}. %build ./autogen.sh +%ifarch armv7hl +export CFLAGS="`echo %{optflags} | sed 's|-mfpu=vfpv3-d16||'`" +export CXXFLAGS="`echo %{optflags} | sed 's|-mfpu=vfpv3-d16||'`" +%endif %configure --disable-static %make_build %make_build training