if your distro is very exotic, old or not glibc based you can debootstrap a modern debian/ubuntu system and chroot to it NOTE: it's not possible to build luajit in chroot under standard openwrt kernel ...