Skip to content

Commit

Permalink
Set compiler debug flags using MATE_DEBUG_CHECK
Browse files Browse the repository at this point in the history
--enable-debug=yes/info/profile/no

By default, compiler debug flags are disabled.

Test:

$ ./autogen.sh && grep "^CFLAGS" config.log
CFLAGS=' -Wall -Wcast-align -Wchar-subscripts -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wsign-compare -Wshadow'

$ ./autogen.sh --enable-debug && grep "^CFLAGS" config.log
CFLAGS=' -g -O0 -Wall -Wcast-align -Wchar-subscripts -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wsign-compare -Wshadow'
  • Loading branch information
rbuj authored and raveit65 committed Oct 1, 2019
1 parent 7ff2e5f commit 8c048c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([subdir-objects no-dist-gzip dist-xz check-news])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_MAINTAINER_MODE
AX_CHECK_ENABLE_DEBUG()
MATE_DEBUG_CHECK([no])
MATE_COMPILE_WARNINGS([yes])

dnl **************************************************************************
Expand Down

0 comments on commit 8c048c2

Please sign in to comment.