Compiled on RPI4B-4G 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 cmake Commands: wget https://c-ares.org/download/c-ares-1.18.1.tar.gz tar -xf /mnt/mmcblk0p3/compile/c-ares/c-ares cd c-ares-1.18.1/ mkdir build && cd build # build type: MinSizeRel --> mini-size release cmake -LAH -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_VERBOSE_MAKEFILE=TRUE .. time make -j4 real 0m 12.21s user 0m 21.35s sys 0m 7.23s DESTDIR=/tmp/packing-c-ares make install mkdir -p /tmp/packing-c-ares-dev/usr/local/lib/ mv /tmp/packing-c-ares/usr/local/lib/cmake /tmp/packing-c-ares/usr/local/lib/pkgconfig /tmp/packing-c-ares-dev/usr/local/lib/ mv /tmp/packing-c-ares/usr/local/include/ /tmp/packing-c-ares-dev/usr/local/ rm -fr /tmp/packing-c-ares/usr/local/share find /tmp/packing-c-ares -exec file {} + | grep ELF | cut -d : -f 1 | xargs strip --strip-unneeded