mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Add Mac support to script to download gdb
-Make sure getopt command is present (not included by default on Mac but available through MacPorts -Patch wrong include Change-Id: I3ad1e19091896f8644ededa9d8200efe40bae82b Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Reviewed-on: https://git.eclipse.org/r/39438 Reviewed-by: Simon Marchi <simon.marchi@polymtl.ca>
This commit is contained in:
parent
2af91607ea
commit
5adce1b311
1 changed files with 9 additions and 1 deletions
|
@ -12,6 +12,12 @@
|
|||
# Stop the script if any command fails
|
||||
set -e
|
||||
|
||||
# Make sure getopt is the command and not the bash built-in
|
||||
if [[ `getopt --version` != *"getopt"* ]]; then
|
||||
echo "getopt command not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Our work directory
|
||||
default_base_dir="$HOME/gdb-all"
|
||||
base_dir="${default_base_dir}"
|
||||
|
@ -146,8 +152,10 @@ function fixup_gdb() {
|
|||
${dryrun} find "${build}/gdb" -type f -exec sed -i -e 's/struct siginfo/siginfo_t/g' {} \;
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Fix wrong include on Mac
|
||||
${dryrun} find "${build}" -name "darwin-nat.c" -type f -exec sed -i -e "s/machine\/setjmp.h/setjmp.h/g" {} \;
|
||||
}
|
||||
|
||||
# Run ./configure.
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue