# 交叉编译gmp配置
./configure \
--host=arm-linux-gnueabi \
--enable-static \
--disable-shared \
--prefix=$(pwd)/output
# 交叉编译 gdb配置
./configure \
--host=arm-linux-gnueabi \
--enable-static \
--disable-shared \
--with-gmp=/home/anlan/Desktop/gdb/gmp-6.2.1/output \
--with-libgmp-prefix=/home/anlan/Desktop/gdb/gmp-6.2.1/output \
CFLAGS="-I/home/anlan/Desktop/gdb/gmp-6.2.1/output/include -L/home/anlan/Desktop/gdb/gmp-6.2.1/output/lib -static" \
CXXFLAGS="-I/home/anlan/Desktop/gdb/gmp-6.2.1/output/include -L/home/anlan/Desktop/gdb/gmp-6.2.1/output/lib -static" \
--prefix=$(pwd)/output \
--disable-werror \
--without-x \
--disable-gdbtk \
--disable-tui \
--disable-nls
通过网盘分享的文件:gdb_arm.tar.gz等2个文件
链接: https://pan.baidu.com/s/1B8yRroTfwZO6HnVlMJ-jOw 提取码: ctsg
--来自百度网盘超级会员v9的分享