有可能会出现不认识--host=arm-linux-androideabi的情况。
我在libiconv编译中,遇到认识--host=arm-linux-androideabi 但不正确编译的情况。
(1)
参考http://stackoverflow.com/questions/4594736/configure-does-not-recognize-androideabi
http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree
HEAD的是 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob;f=config.guess;hb=HEAD
config.guess不认识android啊:
config.sub是认识android的
HEAD的raw地址是
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
(2)
命令行如下:
$ wget -O /tmp/config.sub "git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD"
$ wget -O /tmp/config.guess "git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD"
(3)
也有人说可以这样的,从autotools-dev中获取
You can also grab config.sub
and config.guess
from the Ubuntu autotools-dev
package:
sudo apt-get install autotools-dev
cp /usr/share/misc/config.{sub,guess} .