pulseaudio: add lto and gc-sections to reduce size
authorRosen Penev <rosenp@gmail.com>
Sun, 26 Apr 2020 03:27:28 +0000 (20:27 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 5 May 2020 01:32:01 +0000 (18:32 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
sound/pulseaudio/Makefile

index 1225d53a5a0418229e81dfedff49997cd1b2e77a..fc71d0acb99591313823f31ea1be55005eaa5225 100644 (file)
@@ -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) \