From 06b9aac1847161f027546574d2ce4aed7eacbebd Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 27 Sep 2019 11:37:42 +0200 Subject: Set compiler debug flags using MATE_DEBUG_CHECK -enable-debug=yes/info/profile/no By default, compiler debug flags are disabled. Test: $ ./autogen.sh && make clean && make && file mate-panel/mate-panel autogen cflags: file mate-panel/mate-panel: ..., not stripped $ ./autogen.sh -enable-debug && make clean && make && file mate-panel/mate-panel autogen cflags: -g -O0 file mate-panel/mate-panel: ..., with debug_info, not stripped $ CFLAGS="-g -O2" ./autogen.sh && make clean && make && file mate-panel/mate-panel autogen cflags: -g -O2 file mate-panel/mate-panel: ..., with debug_info, not stripped $ CFLAGS="-g -O2" ./autogen.sh -enable-debug && make clean && make && file mate-panel/mate-panel autogen cflags: -g -O2 -g -O0 file mate-panel/mate-panel: ..., with debug_info, not stripped --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5941720f..096be2cc 100644 --- a/configure.ac +++ b/configure.ac @@ -20,6 +20,7 @@ AC_SUBST(LIB_MATE_PANEL_APPLET_LT_VERSION) AM_MAINTAINER_MODE MATE_MAINTAINER_MODE_DEFINES +MATE_DEBUG_CHECK([no]) IT_PROG_INTLTOOL([0.50.1]) -- cgit v1.2.1