summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2019-04-01 18:37:05 (EDT)
committer P. J. McDermott <pj@pehjota.net>2019-04-01 18:37:05 (EDT)
commita3e6349e4bbf4ad193350bb8576779c82babc5e1 (patch)
treeb22778bc04cd28d8954236db31b8111ec10e1bba
parentab2f7fe9ac957d4bccf17c2fb2f3429a052f698a (diff)
build: Build with -std=c99
-rwxr-xr-xbuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/build b/build
index b8502f4..cd1355b 100755
--- a/build
+++ b/build
@@ -2,14 +2,16 @@
include ../source.mk
+CFLAGS = -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -std=c99
+
nop:
@:
build:
oh-autoconfigure
- oh-autobuild
+ oh-autobuild -- CFLAGS='$(CFLAGS)'
if [ 'x$(OPK_BUILD_ARCH)' = 'x$(OPK_HOST_ARCH)' ]; then \
- oh-autotest; \
+ oh-autotest -- CFLAGS='$(CFLAGS)'; \
fi
touch $@