tce-load -i expat2-dev libpng-dev

cd gexiv2-0.6.1

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

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

make
sudo make install

------------------------------------------------------------------
-- Exiv2 0.23 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
------------------------------------------------------------------