Skip to content

Commit

Permalink
configure: keep CFLAGS on --enable-debug
Browse files Browse the repository at this point in the history
e.g. -I/usr/local/include is needed for dwgps
just remove -O2
  • Loading branch information
rurban committed Aug 12, 2018
1 parent c9c465b commit 8529483
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ dnl --enable-debug sets DEBUG_CLASSES
AC_MSG_CHECKING([--enable-debug])
AC_ARG_ENABLE([debug],AS_HELP_STRING([--enable-debug],[
Enable DEBUG_CLASSES (default: no).]),
if test x$ac_compiler_gnu = xyes; then
CFLAGS="-g -fno-omit-frame-pointer"
[if test x$ac_compiler_gnu = xyes; then
CFLAGS="`echo $CFLAGS|sed 's,-O2,,'` -fno-omit-frame-pointer"
fi
CFLAGS="$CFLAGS -DDEBUG_CLASSES"
CFLAGS="$CFLAGS -DDEBUG_CLASSES"]
AC_MSG_RESULT([yes]),
AC_MSG_RESULT([no (default)]))

Expand Down

0 comments on commit 8529483

Please sign in to comment.