Merge pull request #15 from MaddTheSane/patch-1

Configure: pick up flags from the command line
This commit is contained in:
sarah-walker-pcem 2021-05-25 20:38:31 +01:00 committed by GitHub
commit f47f6ffb25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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