tce-load -i compiletc exiv214-dev gobject-introspection-dev py3gobject-dev pygobject-dev

cd gexiv2-0.10.6

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 -O2//g' {} \;
find . -name Makefile -type f -exec sed -i 's/-O2 -g//g' {} \;

make
sudo make install

GExiv2 will be built with prefix /usr/local for x86_64-pc-linux-gnu (cross-compiling: no).

Options:
    Introspection:      yes
    Python2 binding:    yes
    Python3 binding:    yes