Compiled on RPI3B with 5.10.77-piCore-v8 Compile Flags: CFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto -fuse-linker-plugin -fno-exceptions' CXXFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto -fuse-linker-plugin -fno-exceptions -fno-rtti' LDFLAGS='-Wl,-O1' export CFLAGS CXXFLAGS LDFLAGS Dependencies: compiletc python3.8-meson llvm-bin Commands: # fix lto P=/usr/local/libexec/gcc/aarch64-unknown-linux-gnu/10.2.0/liblto_plugin.so.0.0.0 sudo mkdir -p /usr/local/lib/bfd-plugins sudo ln -sfv $P /usr/local/lib/bfd-plugins/liblto_plugin.so tar -xf r53.tar.gz cd inih-r53 mkdir build && cd build # https://mesonbuild.com/Builtin-options.html#build-type-options CC='gcc' CXX='g++' meson --prefix=/usr/local --strip --buildtype=custom --default-library=both --optimization=s -Ddebug=false # check compile_commands.json to verify the flags time ninja real 0m 7.93s user 0m 10.34s sys 0m 1.50s DESTDIR=/tmp/packing-inih ninja install cd /tmp/packing-inih/usr/local/lib llvm-strip --strip-unneeded libINIReader.a libINIReader.so.0 libinih.a libinih.so.0