Compiled on RPI3B with 6.1.25-piCore-v7 Compile Flags: CFLAGS='-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -L/usr/local/lib -Os -pipe -flto -fuse-linker-plugin -fno-exceptions' CXXFLAGS='-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -L/usr/local/lib -Os -pipe -flto -fuse-linker-plugin -fno-exceptions -fno-rtti' LDFLAGS='-Wl,-rpath=/usr/local/lib -Wl,-O1' export CFLAGS CXXFLAGS LDFLAGS Dependencies: compiletc cmake Commands: wget https://c-ares.org/download/c-ares-1.19.1.tar.gz tar -xf /mnt/mmcblk0p3/compile/c-ares/c-ares cd c-ares-1.19.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 24.20s user 0m 42.83s sys 0m 6.79s 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