Compiled on PI4B4G with 5.10.77-piCore-v8 Reference: https://github.com/archlinux/svntogit-community/blob/packages/miniupnpd/trunk/PKGBUILD Compile Flags: CC='gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto' CXX='g++ -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto' CPPFLAGS='-DNDEBUG' LDFLAGS="-Wl,-O1" export CC CXX CPPFLAGS LDFLAGS Dependencies: compiletc iptables-dev libcap-ng-dev openssl-dev Commands: (I'm keeping etc files in /etc rather than /usr/local/etc because it may break several things) wget http://miniupnp.free.fr/files/download.php?file=miniupnpd-2.3.0.tar.gz -O miniupnpd-2.3.0.tar.gz tar -xf miniupnpd-2.3.0.tar.gz cd miniupnpd-2.3.0 ./configure --ipv6 --leasefile time make -j4 real 0m 15.43s user 0m 28.94s sys 0m 5.95s DESTDIR=/tmp/packing-miniupnpd make install cd /tmp/packing-miniupnpd mkdir ./usr/local/ mv ./usr/sbin ./usr/local/ rm -fr ./usr/share # check path /usr --> /usr/local, /etc --> /usr/local/etc sed -i 's:/usr/sbin:/usr/local/sbin:g' ./etc/init.d/miniupnpd # hard coded in binary # tce.install [ -f /etc/miniupnpd.conf ] || cp /etc/miniupnpd/miniupnpd.conf /etc/