Compiled on RPI3B with 6.1.25-piCore-v7 Reference: https://www.webmproject.org/code/ https://github.com/webmproject/libvpx/archive/refs/tags/v1.13.0.tar.gz *** This library does not have armv6 support *** Compile Flags: CC='clang -fuse-ld=lld' CXX='clang++ -fuse-ld=lld' CFLAGS='-march=armv7-a -mtune=cortex-a7 -mfpu=neon -L/usr/local/lib -Os -pipe -flto -fno-exceptions -Wno-unused-command-line-argument' CXXFLAGS='-march=armv7-a -mtune=cortex-a7 -mfpu=neon -L/usr/local/lib -Os -pipe -flto -fno-exceptions -fno-rtti -Wno-unused-command-line-argument' LDFLAGS='-Wl,-rpath=/usr/local/lib -Wl,-O1' export CC CXX CFLAGS CXXFLAGS LDFLAGS Dependencies: clang coreutils lld llvm15-bin perl5 Commands: wget https://github.com/webmproject/libvpx/archive/refs/tags/v1.13.0.tar.gz mv v1.13.0.tar.gz libvpx-1.13.0.tar.gz tar -xf libvpx-1.13.0.tar.gz cd libvpx-1.13.0 mkdir tc_build && cd tc_build ../configure --enable-shared --enable-small # Don't strip static libraries, it'll cause error here. # It's never a good idea to strip the static libraries # even if you extract the files, strip would not process any of them # controled by HAVE_GNU_STRIP sed -i.orig '/^HAVE_GNU_STRIP/s;=.*;= 0;' Makefile # remove O2 grep -l '\-O2' *.mk | xargs sed -i 's/-O2//g' time make -j4 real 9m 43.87s user 21m 24.54s sys 0m 41.82s DESTDIR=/tmp/packing-libvpx make install # strip llvm-strip --strip-unneeded /tmp/packing-libvpx/usr/local/bin/* /tmp/packing-libvpx/usr/local/lib/libvpx.so.8.0.0 # dev mkdir -p /tmp/packing-libvpx-dev/usr/local/lib/ mv /tmp/packing-libvpx/usr/local/lib/pkgconfig/ /tmp/packing-libvpx-dev/usr/local/lib/ mv /tmp/packing-libvpx/usr/local/include/ /tmp/packing-libvpx-dev/usr/local/ mv /tmp/packing-libvpx/usr/local/lib/libvpx.a /tmp/packing-libvpx-dev/usr/local/lib/