tce-load -i tiff-dev libjpeg-turbo-dev

cd djvulibre-3.5.27

CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe" ./configure --prefix=/usr/local --localstatedir=/var --disable-static

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

make
sudo make install

djvulibre 3.5.27

Configuration Options Summary:

  OS.................: linux-gnu
  Win32 support......: no
  Pthread support....: yes
  Iconv support......: yes
  JPEG support.......: yes
  TIFF support.......: yes
  XML tools..........: yes
  Desktop files......: yes
  Icon generation....: rsvg

Compilation..........: make (or gmake)
  CPPFLAGS...........: 
  CFLAGS.............:  -g -O3 -Wall -DNDEBUG
  CXXFLAGS...........:  -g -O3 -Wall -DNDEBUG
  LDFLAGS............: 

Installation...........: make install (as root if needed, with 'su' or 'sudo')
  prefix...............: /usr/local
