From: Rosen Penev Date: Sun, 29 Nov 2020 05:59:20 +0000 (-0800) Subject: fdk-aac: fixup flags X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a2ff9874f63ed5082654bf62f14e66c433dfc8fc;p=feed%2Fpackages.git fdk-aac: fixup flags As implemented, these get duplicated. In particular, the ldflags get recursive and with some recent OpenWrt change, it errors. Signed-off-by: Rosen Penev --- diff --git a/sound/fdk-aac/Makefile b/sound/fdk-aac/Makefile index 61599c6870..794484bdc3 100644 --- a/sound/fdk-aac/Makefile +++ b/sound/fdk-aac/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fdk-aac PKG_VERSION:=2.0.1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/mstorsjo/fdk-aac/tar.gz/v$(PKG_VERSION)? @@ -47,11 +47,9 @@ define Package/fdk-aac/description endef ifeq ($(CONFIG_FDK-AAC_OPTIMIZE_SPEED),y) - TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) - TARGET_CFLAGS += $(TARGET_CFLAGS) -O2 -flto - TARGET_CXXFLAGS := $(filter-out -O%,$(TARGET_CXXFLAGS)) - TARGET_CXXFLAGS += $(TARGET_CXXFLAGS) -O2 -flto - TARGET_LDFLAGS += $(TARGET_LDFLAGS) -flto + TARGET_CFLAGS:= $(filter-out -O%,$(TARGET_CFLAGS)) -O2 -flto + TARGET_CXXFLAGS:= $(filter-out -O%,$(TARGET_CXXFLAGS)) -O2 -flto + TARGET_LDFLAGS += -flto endif define Build/InstallDev