configure: include -std=c99 in config.mk
So other makefiles can use it, e.g. the one in external/lua
This commit is contained in:
parent
8568ca2fb3
commit
d4ec5248fe
2 changed files with 5 additions and 3 deletions
5
configure
vendored
5
configure
vendored
|
@ -5,6 +5,7 @@
|
|||
set -e
|
||||
|
||||
mkf=config.mk
|
||||
cflags='-std=c99' # set here to apply to all subtrees
|
||||
|
||||
# utility functions
|
||||
|
||||
|
@ -43,9 +44,9 @@ gen_CC () {
|
|||
## flags used in the compilation step
|
||||
gen_CFLAGS () {
|
||||
if [ -z "$debug" ]; then
|
||||
cflags="-O2"
|
||||
cflags="$cflags -O3"
|
||||
else
|
||||
cflags="-O0 -g"
|
||||
cflags="$cflags -O0 -g"
|
||||
fi
|
||||
|
||||
for flag in $cflags; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue