tce-load -i intltool gtk3-dev gnome-desktop-dev consolekit-dev json-glib-dev

cd gnome-session-3.16.0

CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe"  ./configure --prefix=/usr/local --disable-static --disable-man --localstatedir=/var --libexecdir=/usr/local/lib/gnome-session -enable-consolekit --disable-systemd

find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \;

make
sudo make install

checking for GIO... yes
checking for GIOUNIX... yes
checking for GTK3... yes
checking for GNOME_SESSION... yes
checking for UPOWER... no
checking for SESSION_PROPERTIES... yes
checking for X11... yes
checking for SM... yes
checking for ICE... yes
checking for XEXT... yes
checking for EGG_SMCLIENT... yes
checking for GL_TEST... yes
checking for GCONF... no
checking for SYSTEMD... no
checking for SYSTEMD... no
checking whether to use systemd... no
checking whether to use consolekit... yes
checking for CONSOLEKIT... yes
checking for X11/extensions/sync.h... yes
checking for XTEST... yes
checking for XRENDER... yes

              gnome-session 3.16.0
              ====================

        prefix:                   /usr/local
        exec_prefix:              ${prefix}
        libdir:                   ${exec_prefix}/lib
        bindir:                   ${exec_prefix}/bin
        sbindir:                  ${exec_prefix}/sbin
        sysconfdir:               ${prefix}/etc
        localstatedir:            /var
        datadir:                  ${datarootdir}
        source code location:     .
        compiler:                 gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe
        cflags:                   -g -O2
        Maintainer mode:          no
        Use *_DISABLE_DEPRECATED: no

        GConf support:            no
        Session tracking:         ConsoleKit
        IPv6 support:             yes
        Backtrace support:        no
        XRender support:          yes
        XSync support:            yes
        XTest support:            yes
        Legacy UPower backend:    no
        Build Docbook:            no
        Build manpages:           no

