tce-load -i intltool dbus-glib-dev polkit-dev gudev-lib-dev libusb-dev libimobiledevoce-dev

cd upower-0.9.23

CFLAGS="-fPIC" CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe" ./configure --prefix=/usr/local

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

make
sudo make install


$ /usr/local/libexec/upowerd -v
TI:21:36:35     Failed to acquire org.freedesktop.UPower: Connection ":1.16" is not allowed to own the service "org.freedesktop.UPower" due to security policies in the configuration file
TI:21:36:35     Could not acquire name; bailing out
$ sudo /usr/local/libexec/upowerd -v
TI:21:36:52     Failed to acquire org.freedesktop.UPower: Connection ":1.17" is not allowed to own the service "org.freedesktop.UPower" due to security policies in the configuration file
TI:21:36:52     Could not acquire name; bailing out


                 UPower 0.9.23
             =========================

        prefix:                     /usr/local
        libdir:                     ${exec_prefix}/lib
        libexecdir:                 ${exec_prefix}/libexec
        bindir:                     ${exec_prefix}/bin
        sbindir:                    ${exec_prefix}/sbin
        datadir:                    ${datarootdir}
        sysconfdir:                 ${prefix}/etc
        localstatedir:              ${prefix}/var
        docdir:                     ${datarootdir}/doc/${PACKAGE_TARNAME}

        compiler:                   gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe
        cflags:                     -g -O2
        cppflags:                    -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -DGSEAL_ENABLE
        xsltproc:                   

        Enable deprecated stuff:    no
        Backend:                    linux
        libimobiledevice support:   yes
        Maintainer mode:            yes
        Building api docs:          no
        Building man pages:         no
        Building unit tests:        yes
