tce-load -i dbus-glib-dev alsa-dev libusb-compat-dev libsndfile-dev cd bluez-4.101 CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --sysconfdir=/usr/local/etc localstatedir=/var --libexecdir=/usr/local/lib --enable-tools --enable-test --enable-dund --enable-hidd --enable-pand --enable-datafiles --enable-cups --enable-health --enable-bccmd --enable-pcmcia --enable-wiimote --enable-dfutool --enable-hid2hci --without-systemdunitdir find . -name Makefile -type f -exec sed -i 's/-O2/ /g' {} \; $ make $ sudo make install cp /usr/src/bluez-4.101/test/simple-agent & simple-sevice to /usr/local/bin & change /usr/bin/python -> /usr/local/bin/python edit /usr/local/etc/dbus-1/system.d/bluetooth.conf lp -> staff