pulseaudio: do not build NEON with unsupported platforms
authorRosen Penev <redacted>
Tue, 5 May 2020 01:04:19 +0000 (18:04 -0700)
committerRosen Penev <redacted>
Tue, 5 May 2020 22:02:01 +0000 (15:02 -0700)
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 <redacted>
sound/pulseaudio/Makefile

index fc71d0acb99591313823f31ea1be55005eaa5225..ac5454e1eaa8abafc1d3177284d2ec06c7190230 100644 (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 \
git clone https://git.99rst.org/PROJECT