Browse Source

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 <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 4 years ago
parent
commit
a2ff9874f6
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      sound/fdk-aac/Makefile

+ 4
- 6
sound/fdk-aac/Makefile View File

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=fdk-aac PKG_NAME:=fdk-aac
PKG_VERSION:=2.0.1 PKG_VERSION:=2.0.1
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/mstorsjo/fdk-aac/tar.gz/v$(PKG_VERSION)? 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 endef
ifeq ($(CONFIG_FDK-AAC_OPTIMIZE_SPEED),y) 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 endif
define Build/InstallDev define Build/InstallDev


Loading…
Cancel
Save