Skip to content

Commit

Permalink
fix: respect CFLAGS from environment, or set defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Boian Berberov committed Sep 27, 2024
1 parent b8b6a5f commit 3ead10d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 3ead10d

Please sign in to comment.