cross compile x86_64 program for openwrt

export STAGING_DIR=/home/openwrt/staging_dir/toolchain-x86_64_gcc-7.5.0_musl
export PATH=${PATH}:${STAGING_DIR}/bin

./configure --build=x86_64-unknown-linux-gnu --host=x86_64-openwrt-linux-musl

make -j8

你可能感兴趣的:(openwrt)