lightning #!/bin/bash export PATH=$PATH:/home/adam/data/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-8.3.0_musl_eabi/bin export STAGING_DIR=/home/adam/data/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-8.3.0_musl_eabi export target_host=arm-openwrt-linux-muslgnueabi export AR=$target_host-ar export AS=$target_host-as export CC=$target_host-gcc export CXX=$target_host-g++ export LD=$target_host-ld export STRIP=$target_host-strip export QEMU_LD_PREFIX=/home/adam/data/openwrt/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/root-mvebu edit Makefile to change /usr/local to /home/adam/data/openwrt/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr edit external/libwally/config.status and external/libsodium/Makefile to set HAVE_EXPLICIT_BZERO=0 edit configure script to add -lz after libsqlite3: link=-lsqlite3 -lz ./configure --enable-static --prefix=$QEMU_LD_PREFIX BUILD=x86_64 MAKE_HOST=arm-linux-gnueabihf HOST=arm-linux-gnueabihf make bitcoin change __NFDBITS to NFDBITS in src/compat/glibc_compat.cpp (not necessary in bitcoin 19) export QEMU_LD_PREFIX=/home/adam/data/openwrt/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi ./configure --prefix=$QEMU_LD_PREFIX --host=$target_host --disable-wallet --enable-reduce-exports BUILD=x86_64 MAKE_HOST=arm-linux-gnueabihf HOST=arm-linux-gnueabihf make