From b92e778fd71dfc86d41e6ddf68cf7b35477bc927 Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Sun, 8 Nov 2009 07:04:14 +0000 Subject: [PATCH] Reenable -O2 for Wavpack, which appears to have been lost during makefile clean up. Improves wavpack decoding performance by several MHz on ARM and Coldfire. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23566 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libwavpack/libwavpack.make | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/codecs/libwavpack/libwavpack.make b/apps/codecs/libwavpack/libwavpack.make index a2e5377418..f0912ee0eb 100644 --- a/apps/codecs/libwavpack/libwavpack.make +++ b/apps/codecs/libwavpack/libwavpack.make @@ -13,6 +13,13 @@ WAVPACKLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libwavpack/SOURCES) WAVPACKLIB_OBJ := $(call c2obj, $(WAVPACKLIB_SRC)) OTHER_SRC += $(WAVPACKLIB_SRC) +WAVPACKFLAGS = -I$(APPSDIR)/codecs/libwavpack $(filter-out -O%,$(CODECFLAGS)) +WAVPACKFLAGS += -O2 + $(WAVPACKLIB): $(WAVPACKLIB_OBJ) $(SILENT)$(shell rm -f $@) $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null + +$(CODECDIR)/libwavpack/%.o: $(ROOTDIR)/apps/codecs/libwavpack/%.c + $(SILENT)mkdir -p $(dir $@) + $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(WAVPACKFLAGS) -c $< -o $@