From 5ce6ce6b132cfce9f882e751b23ea599d1daec20 Mon Sep 17 00:00:00 2001 From: Daniel Engberg Date: Sun, 1 Apr 2018 17:53:40 +0200 Subject: [PATCH] sound/lame: Fix optimization Properly strip any -O switch Signed-off-by: Daniel Engberg --- sound/lame/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/lame/Makefile b/sound/lame/Makefile index 45cd14d4c3..ff819fa00e 100644 --- a/sound/lame/Makefile +++ b/sound/lame/Makefile @@ -63,8 +63,7 @@ TARGET_CFLAGS+=-msse endif ifeq ($(CONFIG_LAME-LIB_OPTIMIZE_SPEED),y) - TARGET_CFLAGS += $(TARGET_CFLAGS) -O3 -ffast-math - TARGET_CFLAGS := $(filter-out -Os,$(TARGET_CFLAGS)) + TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3 -ffast-math endif CONFIGURE_ARGS += --disable-gtktest --disable-static