tce-load -i compiletc automake libtool-dev intltool bash ilmbase-dev

cd openexr-2.2.0/OpenEXR

./bootstrap

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

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

make
sudo make install

---------------------------------------------
Summary for OpenEXR features:

build IlmImf example program                    no
build IlmImf damaged input resilience test      no
build IlmImf huge input test                    no
enable large stack optimizations                yes
internal library namespace                      Imf_2_2
user-client namespace                           Imf

---------------------------------------------
