1、编译环境
sudo apt-get install subversion git flex g++ gawk zlib1g-dev libncurses5-dev
2、编译出错
a. ./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
进入相应的目录执行
sed -i -e '/gets is a security/d' ./stdio.in.h
http://www.openwrt.org.cn/bbs/forum.php?mod=viewthread&tid=13909
b.elf.cpp:68:5: error: '::close' has not been declared
修改 ./build_dir/host/mklibs/src/mklibs-readelf/elf.cpp