AM3358
Build GDB
參考資訊:
1. gdb
步驟如下:
$ cd $ wget https://ftp.gnu.org/gnu/gdb/gdb-8.0.tar.gz $ tar xvf gdb-8.0.tar.gz $ cd gdb-8.0 $ export INSTALLDIR=~/gdb $ export PATH=$INSTALLDIR/bin:$PATH $ export TARGETMACH=arm-linux $ export BUILDMACH=i686-pc-linux-gnu $ export CROSS=arm-linux $ export CC=${CROSS}-gcc $ export LD=${CROSS}-ld $ export AS=${CROSS}-as $ ./configure --prefix=/home/steward/gdb --host=$TARGETMACH --disable-tui --enable-static=yes $ make LDFLAGS=-static $ make install