Update build_gdb.sh

This commit is contained in:
takeshix 2020-10-12 18:41:49 +02:00 committed by GitHub
parent 19ae03413e
commit 4284ed35a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,12 +23,14 @@ build_gdb() {
CMD+="CC_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-gcc\" " CMD+="CC_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-gcc\" "
CMD+="CPP_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-g++\" " CMD+="CPP_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-g++\" "
fi fi
CMD+="./configure --target=$(get_host_triple) --host=x86_64-unknown-linux-musl " CMD+="${BUILD_DIRECTORY}/binutils-gdb/configure --target=$(get_host_triple) --host=x86_64-unknown-linux-musl "
CMD+="--disable-shared --enable-static" CMD+="--disable-shared --enable-static"
GDB_CMD="${CMD} --disable-interprocess-agent" GDB_CMD="${CMD} --disable-interprocess-agent"
cd "${BUILD_DIRECTORY}/binutils-gdb/" cd "${BUILD_DIRECTORY}/binutils-gdb/"
mkdir build
cd build
eval "$GDB_CMD" eval "$GDB_CMD"
make -j4 make -j4