From 45e58e1cc34be2836a7baadfae8e0ccebd693cf9 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 25 Apr 2020 20:27:28 -0700 Subject: [PATCH 1/2] pulseaudio: add lto and gc-sections to reduce size Signed-off-by: Rosen Penev --- sound/pulseaudio/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/pulseaudio/Makefile b/sound/pulseaudio/Makefile index 1225d53a5..fc71d0acb 100644 --- a/sound/pulseaudio/Makefile +++ b/sound/pulseaudio/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pulseaudio PKG_VERSION:=13.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://freedesktop.org/software/pulseaudio/releases @@ -96,6 +96,7 @@ define Package/pulseaudio-profiles endef MESON_ARGS += \ + -Db_lto=true \ -Dgcov=false \ -Dman=false \ -Dtests=false \ @@ -142,7 +143,7 @@ MESON_ARGS += \ -Ddbus=disabled endif -TARGET_LDFLAGS += -liconv +TARGET_LDFLAGS += -Wl,--gc-sections -liconv define Build/InstallDev $(INSTALL_DIR) \ From 91e80e5442484e5bbb8515e686631c7e937f3a10 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 4 May 2020 18:04:19 -0700 Subject: [PATCH 2/2] 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 --- sound/pulseaudio/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) 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 \