win10下使用mingw32编译32位gdb-7.6.2

gdb编译过程:使用msys2的原生客户端,python要使用2.7
1. pacman -S make
2. pacman -S texinfo
Packages (1) texinfo-6.7-3
3. pacman -S mingw-w64-i686-toolchain
4. mv /d/programs/msys64/mingw32/lib/libncurses.a /d/programs/msys64/mingw32/lib/libncurses.a.bak
5. ~/.bashrc:export PATH=/d/programs/Python/Python27:/d/programs/msys64/mingw32/bin:$PATH
6. ../configure CFLAGS=" -g -O2 -Wno-error " CXXFLAGS=" -g -O2 -Wno-error " --prefix=/d/workspace/cpp/gdb --build=i686-w64-mingw32
7. make -sj8
8. make install -sj8

posted @ 2021-08-08 16:42  邱明成  阅读(582)  评论(0编辑  收藏  举报