diff options
author | rbuj <[email protected]> | 2019-09-27 11:37:42 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-10-01 15:08:57 +0200 |
commit | 06b9aac1847161f027546574d2ce4aed7eacbebd (patch) | |
tree | 666f93e1ad8ee53332bf8f4bd13d6541ff9a9dde | |
parent | d7bf58967703f42f39f17d16def3857b9f205b1c (diff) | |
download | mate-panel-06b9aac1847161f027546574d2ce4aed7eacbebd.tar.bz2 mate-panel-06b9aac1847161f027546574d2ce4aed7eacbebd.tar.xz |
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
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | configure.ac | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 9d103058..d7317db9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,6 +64,7 @@ env: requires: archlinux: # Useful URL: https://git.archlinux.org/svntogit/community.git/tree/mate-panel + - autoconf-archive - clang - gcc - git @@ -85,6 +86,7 @@ requires: debian: # Useful URL: https://github.com/mate-desktop/debian-packages # Useful URL: https://salsa.debian.org/debian-mate-team/mate-panel + - autoconf-archive - clang - clang-tools - cppcheck @@ -119,6 +121,7 @@ requires: fedora: # Useful URL: https://src.fedoraproject.org/cgit/rpms/mate-panel.git + - autoconf-archive - clang-analyzer - clang - cppcheck-htmlreport @@ -141,6 +144,7 @@ requires: - yelp-tools ubuntu: + - autoconf-archive - clang - clang-tools - gir1.2-freedesktop 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]) |