交叉编译arm gdb

# 交叉编译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的分享

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容