移植openswan时遇到的libgmp.a的问题
移植openswan时需要libgmp.a库,不得以,重新下载gmp-4.3.2包,解压过后,执行./configure CC=arm-none-linux-gnueabi-gcc 出错
checking whether arm-none-linux-gnueabi-gcc is gcc... yes
checking compiler arm-none-linux-gnueabi-gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler arm-none-linux-gnueabi-gcc -O2 -pedantic -fomit-frame-pointer ... no, program does not run
configure: error: could not find a working compiler, see config.log for details
试了半天没有解决这个问题,只好先执行./configure,然后手工修改其中的gcc 为 arm-none-linux-gnueabi-gcc,继续执行make,出来的问题是
cc1: error: unrecognized command line option "-m32"
fib_table.c:1: error: bad value (k8) for -mtune= switch
fib_table.c:1: error: bad value (k8) for -march= switch
有做过的朋友请指点指点