Fix compilation issue with gcc v6.x and empty CXXFLAGS (See #20)

This commit is contained in:
chros
2017-07-30 20:37:21 +01:00
parent 226e670dec
commit 943b576e1f
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@ AC_CONFIG_HEADERS(config.h)
AC_PROG_CXX
AC_PROG_LIBTOOL
RAK_CHECK_CXXFLAGS
RAK_ENABLE_DEBUG
RAK_ENABLE_EXTRA_DEBUG
RAK_ENABLE_WERROR
+13
View File
@@ -1,3 +1,16 @@
AC_DEFUN([RAK_CHECK_CXXFLAGS], [
AC_MSG_CHECKING([for user-defined CXXFLAGS])
if test -n "$CXXFLAGS"; then
AC_MSG_RESULT([user-defined "$CXXFLAGS"])
else
CXXFLAGS="-O2"
AC_MSG_RESULT([default "$CXXFLAGS"])
fi
])
AC_DEFUN([RAK_ENABLE_DEBUG], [
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug], [enable debug information [[default=yes]]]),