tce-load -i compiletc expat2-dev libpng-dev curl-dev libssh-dev bash

cd exiv2-0.25

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 --enable-video --enable-webready

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

make
sudo make install

------------------------------------------------------------------
-- Exiv2 0.25 feature configuration summary
--
-- Build a shared library......... YES
-- Use symbol visibility support.. YES
-- PNG image support.............. YES
-- Native language support........ YES
-- Nikon lens database............ YES
-- XMP metadata support........... YES
-- Video support.................. YES
-- Webready support............... YES
-- Using Lib Curl................. YES
-- Using Lib SSH.................. YES
------------------------------------------------------------------
