summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2015-01-18 10:34:38 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2015-01-25 19:51:02 -0800
commitaed2c4d3493cf3a06ad1240f317552fd8bfd687a (patch)
tree1d793ad129a8b5d4f3f31ad2f6313fb4acfa7267
parentf9baaf55ff8cbd4bf018a34f181eda30d03b20dc (diff)
If CFLAGS_FOR_BUILD is not set, include CWARNFLAGS in default value
Help catch errors like missing prototypes in makestrs sooner. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 1f95a5c..34e6aab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,7 +66,8 @@ fi
AC_SUBST([CC_FOR_BUILD])
CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
AC_SUBST(CPPFLAGS_FOR_BUILD)
-CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
+DEFAULT_CFLAGS_FOR_BUILD="${CFLAGS} ${CWARNFLAGS}"
+CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${DEFAULT_CFLAGS_FOR_BUILD}}
AC_SUBST(CFLAGS_FOR_BUILD)
LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
AC_SUBST(LDFLAGS_FOR_BUILD)