library optimization flag can be selected on command line again

`CFLAGS=-O0 make`
will now use `-O0` instead of enforcing `-O3`
which used to be the behavior before introduction of `libzstd.mk`.

This should result in faster tests,
since a few tests depend on this capability for faster roundtrips.
This commit is contained in:
Yann Collet 2021-12-23 17:43:12 -08:00
parent eebf24bd2a
commit 75525fcb9f

View File

@ -79,7 +79,7 @@ endif
CFLAGS += -fno-stack-protector -fomit-frame-pointer -fno-ident \ CFLAGS += -fno-stack-protector -fomit-frame-pointer -fno-ident \
-DDYNAMIC_BMI2=0 -DNDEBUG -DDYNAMIC_BMI2=0 -DNDEBUG
else else
CFLAGS += -O3 CFLAGS ?= -O3
endif endif
DEBUGLEVEL ?= 0 DEBUGLEVEL ?= 0