pulseaudio: do not build NEON with unsupported platforms

Unfortunately, meson's check is totally broken.

Fortunately, it's fairly easy to workaround.

Fixes compilation with all ARM platforms that don't support NEON.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 91e80e5442)
This commit is contained in:
Rosen Penev 2020-05-04 18:04:19 -07:00 committed by Josef Schlehofer
parent 8eb7d95ba8
commit 4021cb65a0
No known key found for this signature in database
GPG key ID: B950216FE4329F4C

View file

@ -145,6 +145,15 @@ endif
TARGET_LDFLAGS += -Wl,--gc-sections -liconv
define Build/Prepare
$(call Build/Prepare/Default)
ifneq ($(findstring arm,$(CONFIG_ARCH)),)
ifeq ($(findstring neon,$(CONFIG_TARGET_OPTIMIZATION)),)
$(SED) '/remap_neon\.c/d' $(PKG_BUILD_DIR)/src/pulsecore/meson.build
endif
endif
endef
define Build/InstallDev
$(INSTALL_DIR) \
$(1)/usr/lib/pkgconfig \