abseil-cpp: do not enforce -mfpu=neon on arm

Abseil-cpp assumes that if you are building for ARM, you can use neon
instructions. This is of course bogus, since not every ARM platform
supports these.

This then leaks via pkgconfig into any package using abseil-cpp, e.g.
gprc.

Fixes application crashes on ARM platforms without neon that use grpc
due to use of illegal instructions.

Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Jonas Gorski
2022-06-16 15:23:15 +02:00
committed by Khem Raj
parent 5665c76046
commit 727bf829c4
4 changed files with 60 additions and 12 deletions
@@ -7,13 +7,14 @@ SECTION = "libs"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=df52c6edb7adc22e533b2bacc3bd3915"
PV = "20211102.0+git${SRCPV}"
PV = "20211102.1+git${SRCPV}"
SRCREV = "7c6608d0dbe43cf9bdf7f77787bc6bc89cc42f8b"
BRANCH = "master"
SRC_URI = "git://github.com/abseil/abseil-cpp;branch=${BRANCH};protocol=https \
file://0001-absl-always-use-asm-sgidefs.h.patch \
file://0002-Remove-maes-option-from-cross-compilation.patch \
file://abseil-ppc-fixes.patch \
file://0003-Remove-neon-option-from-cross-compilation.patch \
"
S = "${WORKDIR}/git"