1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

gdb build script: Make the script work with non-absolute base paths

There are two problems when passing a non-absolute path to the -b flag:

1. It ends up being used in "./configure --prefix=${base_dir}".
   configure fails, because the prefix must be absolute.
2. It ends up being used to set up symlinks, leading to broken links.

Making the install path absolute fixes those.

Change-Id: I7c1d22754c1a788f02cd912f2114cc091951b303
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
This commit is contained in:
Simon Marchi 2016-11-22 16:30:19 -05:00
parent 2e2431dd27
commit e5c63c7cd8

View file

@ -282,6 +282,8 @@ while true; do
esac
done
abs_base_dir=$(readlink -f "${base_dir}")
# Where we download the tarballs
download_dir="${base_dir}/download"
@ -289,7 +291,7 @@ download_dir="${base_dir}/download"
build_dir="${base_dir}/build"
# Where we make install to
install_dir="${base_dir}/install"
install_dir="${abs_base_dir}/install"
# Where we will create symlinks to all gdb versions (in the form gdb.x.y)
# (Hint: this is so you can add this directory to your PATH and have all