Incase CFLAGS is set, we should still set std
diff --git a/Makefile b/Makefile
index f8d2438..0669cfb 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,8 @@
CFLAGS?= -O2
CSTD?= c99
-CFLAGS+= -std=${CSTD}
include config.mk
+CFLAGS+= -std=${CSTD}
OBJS+= ${SRCS:.c=.o} ${COMPAT_SRCS:.c=.o}
diff --git a/configure b/configure
index 8bcf1da..523fc03 100755
--- a/configure
+++ b/configure
@@ -264,8 +264,8 @@
if [ -n "$CFLAGS" ]; then
echo "CFLAGS= $CFLAGS" >>$CONFIG_MK
fi
-if [ -n "$CPPLAGS" ]; then
- echo "CPPLAGS= $CPPLAGS" >>$CONFIG_MK
+if [ -n "$CPPFLAGS" ]; then
+ echo "CPPFLAGS= $CPPFLAGS" >>$CONFIG_MK
fi
if [ -n "$LDFLAGS" ]; then
echo "LDFLAGS= $LDFLAGS" >>$CONFIG_MK