changeset 2061:03995bd56e1f draft dhcpcd-6.0.2

Incase CFLAGS is set, we should still set std
author Roy Marples <roy@marples.name>
date Tue, 25 Jun 2013 09:04:10 +0000
parents e4c1b1a31d67
children 1adfabd46550
files Makefile configure
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Jun 25 08:50:08 2013 +0000
+++ b/Makefile	Tue Jun 25 09:04:10 2013 +0000
@@ -7,8 +7,8 @@
 
 CFLAGS?=	-O2
 CSTD?=		c99
+include config.mk
 CFLAGS+=	-std=${CSTD}
-include config.mk
 
 OBJS+=		${SRCS:.c=.o} ${COMPAT_SRCS:.c=.o}
 
--- a/configure	Tue Jun 25 08:50:08 2013 +0000
+++ b/configure	Tue Jun 25 09:04:10 2013 +0000
@@ -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