Update build_gdb.sh
This commit is contained in:
parent
5400f0350f
commit
9a2da7f51c
1 changed files with 16 additions and 0 deletions
|
@ -33,6 +33,22 @@ build_gdb() {
|
||||||
cd build
|
cd build
|
||||||
eval "$GDB_CMD"
|
eval "$GDB_CMD"
|
||||||
ls -la
|
ls -la
|
||||||
|
|
||||||
|
cd "${BUILD_DIRECTORY}/binutils-gdb/"
|
||||||
|
MAKE_PROG="${MAKE-make}"
|
||||||
|
MAKE="${MAKE_PROG} AR=true LINK=true"
|
||||||
|
export MAKE
|
||||||
|
${MAKE} $* all-libiberty
|
||||||
|
${MAKE} $* all-intl
|
||||||
|
${MAKE} $* all-bfd
|
||||||
|
cd binutils
|
||||||
|
MAKE="${MAKE_PROG}"
|
||||||
|
export MAKE
|
||||||
|
${MAKE} $* ar_DEPENDENCIES= ar_LDADD='../bfd/*.o ../libiberty/*.o `if test -f ../intl/gettext.o; then echo '../intl/*.o'; fi`' ar
|
||||||
|
ls -la
|
||||||
|
cp ar /usr/bin
|
||||||
|
|
||||||
|
cd "${BUILD_DIRECTORY}/binutils-gdb/build"
|
||||||
make -j4
|
make -j4
|
||||||
|
|
||||||
strip "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdb" "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdbserver/gdbserver"
|
strip "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdb" "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdbserver/gdbserver"
|
||||||
|
|
Loading…
Reference in a new issue