Browse Source

sound/lame: Add optional experimental optimization

Add optional experimental optimization
Generic approach for --enable-expopt=full

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
lilik-openwrt-22.03
Daniel Engberg 7 years ago
parent
commit
28aa5e18e0
2 changed files with 23 additions and 0 deletions
  1. +12
    -0
      sound/lame/Config.in
  2. +11
    -0
      sound/lame/Makefile

+ 12
- 0
sound/lame/Config.in View File

@ -0,0 +1,12 @@
menu "Configuration"
depends on PACKAGE_lame-lib
config LAME-LIB_OPTIMIZE_SPEED
bool "Optimize for speed"
default n
help
This enables additional experimental
optmization and increases performance
considerably at the expense of binary size.
endmenu

+ 11
- 0
sound/lame/Makefile View File

@ -22,6 +22,8 @@ PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_LICENSE:=LGPL-2.0 PKG_LICENSE:=LGPL-2.0
PKG_LICENSE_FILES:=COPYING LICENSE PKG_LICENSE_FILES:=COPYING LICENSE
PKG_CONFIG_DEPENDS:= CONFIG_LAME-LIB_OPTIMIZE_SPEED
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
PKG_INSTALL=1 PKG_INSTALL=1
@ -43,6 +45,10 @@ define Package/lame/description
lame mp3 encoder lame mp3 encoder
endef endef
define Package/lame-lib/config
source "$(SOURCE)/Config.in"
endef
define Package/lame-lib define Package/lame-lib
$(call Package/lame/Default) $(call Package/lame/Default)
TITLE:=lame-lib TITLE:=lame-lib
@ -56,6 +62,11 @@ ifeq ($(ARCH),i386)
TARGET_CFLAGS+=-msse TARGET_CFLAGS+=-msse
endif endif
ifeq ($(CONFIG_LAME-LIB_OPTIMIZE_SPEED),y)
TARGET_CFLAGS += $(TARGET_CFLAGS) -O3 -fomit-frame-pointer -ffast-math -fschedule-insns2
TARGET_CFLAGS := $(filter-out -Os,$(TARGET_CFLAGS))
endif
CONFIGURE_ARGS += --disable-gtktest --disable-static CONFIGURE_ARGS += --disable-gtktest --disable-static
define Package/lame/install define Package/lame/install


Loading…
Cancel
Save