sound/lame: Fix optimization
authorDaniel Engberg <redacted>
Sun, 1 Apr 2018 15:53:40 +0000 (17:53 +0200)
committerDaniel Engberg <redacted>
Tue, 3 Apr 2018 19:40:04 +0000 (21:40 +0200)
Properly strip any -O switch

Signed-off-by: Daniel Engberg <redacted>
sound/lame/Makefile

index 45cd14d4c3fc5dbf08158e0ebd7e6aead90c3223..ff819fa00e58baae592d00c01ae9bcfdac827351 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT