Browse Source

Merge pull request #11980 from neheb/pulseee

pulseaudio: add lto and gc-sections to reduce size
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
76f5cf1a28
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      sound/pulseaudio/Makefile

+ 12
- 2
sound/pulseaudio/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=pulseaudio PKG_NAME:=pulseaudio
PKG_VERSION:=13.0 PKG_VERSION:=13.0
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://freedesktop.org/software/pulseaudio/releases PKG_SOURCE_URL:=https://freedesktop.org/software/pulseaudio/releases
@ -96,6 +96,7 @@ define Package/pulseaudio-profiles
endef endef
MESON_ARGS += \ MESON_ARGS += \
-Db_lto=true \
-Dgcov=false \ -Dgcov=false \
-Dman=false \ -Dman=false \
-Dtests=false \ -Dtests=false \
@ -142,7 +143,16 @@ MESON_ARGS += \
-Ddbus=disabled -Ddbus=disabled
endif endif
TARGET_LDFLAGS += -liconv
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 define Build/InstallDev
$(INSTALL_DIR) \ $(INSTALL_DIR) \


Loading…
Cancel
Save