tce-load -i compiletc cmake glib2-dev

wget https://github.com/lensfun/lensfun/archive/refs/tags/v0.3.4.tar.gz

cd lensfun-0.3.4

mkdir build
cd build

cmake -LAH -DCMAKE_C_FLAGS_RELEASE="-flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" -DCMAKE_CXX_FLAGS_RELEASE="-flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -DNDEBUG" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=TRUE ../

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

make [0m 9.28s]
sudo make install

-- Building Lensfun 0.3.4.0
-- -------------------------------------------------------------------------------------
-- Build as dynamic/shared library
-- Build type: Release
-- Build doc: OFF
-- Build test suite: OFF
-- Build lenstool: OFF
-- Build with support for SSE: OFF
-- Build with support for SSE2: OFF
-- Install helper scripts: ON
