Skip to content

Commit

Permalink
Configure: pick up flags from the command line
Browse files Browse the repository at this point in the history
Allow configure to pick up CFLAGS and CXXFLAGS from the command line.

Note: configure will need to be regenerated.
  • Loading branch information
MaddTheSane authored May 19, 2021
1 parent 40a48a4 commit ea08678
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ AC_MSG_CHECKING([whether to enable debugging])
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug], [build debug executable]))
if test "$enable_debug" = "yes"; then
CFLAGS="-Wall -O0 -g -D_DEBUG -fcommon"
CXXFLAGS="-Wall -O0 -g -D_DEBUG -fcommon"
CFLAGS="$CFLAGS -Wall -O0 -g -D_DEBUG -fcommon"
CXXFLAGS="$CXXFLAGS -Wall -O0 -g -D_DEBUG -fcommon"
AC_MSG_RESULT([yes])
else
CFLAGS="-O3 -fcommon"
CXXFLAGS="-O3 -fcommon"
CFLAGS="$CFLAGS -O3 -fcommon"
CXXFLAGS="$CXXFLAGS -O3 -fcommon"
AC_MSG_RESULT([no])
fi

Expand Down

0 comments on commit ea08678

Please sign in to comment.