From 3ead10dd94d7080b54c20da1eb07c7b383fda058 Mon Sep 17 00:00:00 2001 From: Boian Berberov Date: Fri, 27 Sep 2024 12:26:21 -0600 Subject: [PATCH] fix: respect CFLAGS from environment, or set defaults --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index e7735a4e..703ab63f 100755 --- a/configure +++ b/configure @@ -56,7 +56,9 @@ build_cross= # use CC/AR from environment when set test -n "$CC" && cc="$CC" 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 source_path=${0%configure}