注:验证通过。
原因:
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning. Assume it is
always declared, since it is required by C89. */
#undef gets
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
解决方案:
build/host-m4-1.4.16/lib$ sed -i -e '/gets is a security/d' ./stdio.in.h
将“_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");”一行删除,即可编译通过。
在32位Linux(Debian)虚拟机上搭建iphone toolchain实战:http://www.linuxdiyf.com/linux/7917.html
Ubuntu安装GNU Toolchain for ARM:http://www.linuxdiyf.com/linux/7432.html