交叉编译gdb出现configure: error: no termcap library found

gdb版本:gdb-7.7

configure 参数 :

./configure --host=arm-linux CFLAGS="-static" LDFLAGS="-static" CPPFLAGS="-static"

make执行:make

出现错误:

....
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for library containing waddstr... no
configure: WARNING: no enhanced curses library found; disabling TUI
checking for library containing tgetent... no
configure: error: no termcap library found
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory `/home/gdb/gdb-7.7'
make: *** [all] Error 2
...

解决办法:

  1. 下载termcap源码
  2. 交叉编译termcap
  3. arm-linux-gcc -print-file-name=libc.a,把生成的libtermcap.a考至和libc.a一起,然后重新编译gdb

你可能感兴趣的:(Linux)