tce-load -i compiletc perl5 coreutils

wget https://github.com/webmproject/libvpx/archive/v1.14.1/libvpx-1.14.1.tar.gz

cd libvpx-1.14.1

sed -i 's/cp -p/cp/' build/make/Makefile

mkdir build-libvpx
cd build-libvpx

CC="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti" ../configure --prefix=/usr/local --enable-shared --disable-static

[-lto fails]

find . -name libs-arm64-linux-gcc.mk -type f -exec sed -i 's/-O3//g' {} \;
find . -name tools-arm64-linux-gcc.mk -type f -exec sed -i 's/-O3//g' {} \;
find . -name examples-arm64-linux-gcc.mk -type f -exec sed -i 's/-O3//g' {} \;

make [13m 13.10s]
sudo make install
