From: Rosen Penev Date: Tue, 5 May 2020 01:04:19 +0000 (-0700) Subject: pulseaudio: do not build NEON with unsupported platforms X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=91e80e5442484e5bbb8515e686631c7e937f3a10;p=openwrt-packages.git 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 --- diff --git a/sound/pulseaudio/Makefile b/sound/pulseaudio/Makefile index fc71d0acb..ac5454e1e 100644 --- a/sound/pulseaudio/Makefile +++ b/sound/pulseaudio/Makefile @@ -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 \