fix: respect CFLAGS from environment, or set defaults
This commit is contained in:
parent
b8b6a5fd7b
commit
3ead10dd94
1 changed files with 3 additions and 1 deletions
4
configure
vendored
4
configure
vendored
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue