From: Yann Collet Date: Fri, 24 Dec 2021 01:43:12 +0000 (-0800) Subject: library optimization flag can be selected on command line again X-Git-Tag: v1.5.2^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75525fcb9f4c7ed1bb39d10aa43ce529c950d208;p=thirdparty%2Fzstd.git 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. --- diff --git a/lib/libzstd.mk b/lib/libzstd.mk index af12daffe..c04957c6f 100644 --- a/lib/libzstd.mk +++ b/lib/libzstd.mk @@ -79,7 +79,7 @@ endif CFLAGS += -fno-stack-protector -fomit-frame-pointer -fno-ident \ -DDYNAMIC_BMI2=0 -DNDEBUG else - CFLAGS += -O3 + CFLAGS ?= -O3 endif DEBUGLEVEL ?= 0