tce-load -i ijs-dev qpdf-dev cups-dev poppler-dev

cd cups-filters-1.0.42

patch -Np1 -i ../cups-filters-1.0.65-poppler_fix-1.patch

CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr/local --disable-static --without-rcdir --with-gs-path=/usr/local/bin/gs --with-pdftops-path=/usr/local/bin/gs --with-test-font-path=/usr/local/share/fonts/dejavu/DejaVuSans.ttf

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

make
sudo make install

==============================================================================
Environment settings:
        CFLAGS:          -g -O2 -Wall -pedantic -std=gnu99 -D_GNU_SOURCE
        CXXFLAGS:        -g -O2 -Wall -pedantic -D_GNU_SOURCE
        LDFLAGS:         
Build configuration:
        cups-config:     system
        font directory:  ${prefix}/etc/fonts/conf.d
        init directory:  
        cups dom socket: ${prefix}/var/run/cups/cups.sock
        gs-path:         /usr/local/bin/gs
        imagefilters:    yes
        jpeg:            yes
        pdftocairo-path: system
        pdftops:         gs
        pdftops-path:    /usr/local/bin/gs
        png:             yes
        php:             no
        php-config:      system
        test-font:       /usr/local/share/fonts/dejavu/DejaVuSans.ttf
        tiff:            yes
        avahi:           yes
        dbus:            yes
        browsing:        dnssd cups
        werror:          no
==============================================================================
