History

fix: respect CFLAGS from environment, or set defaults

Boian Berberov committed 2 years ago

Commit 3ead10d1 parent b8b6a5f1 file · +3 −1Browse files

Unified · Split

configure+3−1
@@ -56,7 +56,9 @@ build_cross= · 55 unmodified lines
5656 # use CC/AR from environment when set
5757 test -n "$CC" && cc="$CC"
5858 test -n "$AR" && ar="$AR"
59−test -n "CFLAGS" && CFLAGS="-Wall -O2"
59+
60+# set default CFLAGS if unset in environment
61+test -z "$CFLAGS" && CFLAGS="-Wall -O2"
6062
6163 # find source path
6264 source_path=${0%configure}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t