Skip to content

Commit

Permalink
Fix compilation issue with gcc v6.x and empty CXXFLAGS (See rakshasa#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
chros authored and chros committed Jul 30, 2017
1 parent c167c5a commit c2b119d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ AC_C_BIGENDIAN(
AC_MSG_ERROR([Could not determine endianness])
)

RAK_CHECK_CXXFLAGS
RAK_ENABLE_DEBUG
RAK_ENABLE_EXTRA_DEBUG
RAK_ENABLE_WERROR
Expand Down
13 changes: 13 additions & 0 deletions scripts/rak_compiler.m4
Original file line number Diff line number Diff line change
@@ -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]]]),
Expand Down

0 comments on commit c2b119d

Please sign in to comment.