fix: respect CFLAGS from environment, or set defaults

This commit is contained in:
Boian Berberov 2024-09-27 12:26:21 -06:00
parent b8b6a5fd7b
commit 3ead10dd94

4
configure vendored
View file

@ -56,7 +56,9 @@ build_cross=
# use CC/AR from environment when set # use CC/AR from environment when set
test -n "$CC" && cc="$CC" test -n "$CC" && cc="$CC"
test -n "$AR" && ar="$AR" test -n "$AR" && ar="$AR"
test -n "CFLAGS" && CFLAGS="-Wall -O2"
# set default CFLAGS if unset in environment
test -z "$CFLAGS" && CFLAGS="-Wall -O2"
# find source path # find source path
source_path=${0%configure} source_path=${0%configure}