tce-load -i avahi-dev openssl-1.0.0-dev

cups-1.6.4
----------

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 --without-languages --enable-openssl --with-cups-user=tc --with-cups-group=staff

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

make
sudo make install

[cups-driverd] Unable to open driver directory "/usr/local/lib/cups/driver": No such file or directory

Remove filters that are now part of the Cups Filters package by running the following commands as the root user:

rm -rf /usr/share/cups/banners &&
rm -rf /usr/share/cups/data/testprint