mate-desktop / mate-power-manager

Power management tool for the MATE desktop
https://mate-desktop.org
GNU General Public License v2.0
59 stars 51 forks source link

Set compiler debug flags using MATE_DEBUG_CHECK #307

Closed rbuj closed 4 years ago

rbuj commented 4 years ago

-enable-debug=yes/info/profile/no

By default, compiler debug flags are disabled.

Test 1

$ ./autogen.sh --prefix=/usr -enable-debug
...
                    MATE Power Manager 1.23.0
                  =============================

        prefix:                    /usr
        datadir:                   ${datarootdir}
        compiler:                  gcc
        cflags:                     -g -O0
        gnome-keyring support:     yes
        Building extra applets:    yes
        Self test support:         no
        dbus-1 services dir:       ${datarootdir}/dbus-1/services

Now type `make' to compile mate-power-manager

Test 2

$ ./autogen.sh --prefix=/usr
...
                    MATE Power Manager 1.23.0
                  =============================

        prefix:                    /usr
        datadir:                   ${datarootdir}
        compiler:                  gcc
        cflags:
        gnome-keyring support:     yes
        Building extra applets:    yes
        Self test support:         no
        dbus-1 services dir:       ${datarootdir}/dbus-1/services

Now type `make' to compile mate-power-manager

It requires https://github.com/mate-desktop/mate-common/pull/29

raveit65 commented 4 years ago

@rbuj Conflict with actual master.

rbuj commented 4 years ago

@raveit65 Thanks, done.