mips-openwrt-linux-gcc test_usbsw.c -o usbsw 编译问题

 
mips-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not defined
mips-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not defined
mips-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not defined

解决方式:

export STAGING_DIR=(你的OpenWrt目录的绝对路径)/staging_dir

原文地址:https://www.cnblogs.com/xuyh/p/4712594.html