diff options
author | Alexey Neyman <stilor@att.net> | 2017-03-30 05:27:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 05:27:44 (GMT) |
commit | 54a4975220e6a277e93f7844bb79c2dbf5554d16 (patch) | |
tree | 1841eb015e50dab03bb6e03eee7ddc7c0636926a /scripts/build | |
parent | 2cdd503a68a47273ae3a059bebdb466f402c972f (diff) | |
parent | d83a003618ac85d27f19d8fcb6c901f024d3e296 (diff) |
Merge pull request #666 from stilor/symlinks-gcc-libs
Add symlinks from the libraries' original location to the new one.
Diffstat (limited to 'scripts/build')
-rw-r--r-- | scripts/build/cc/100-gcc.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh index f7c1a9c..190aec8 100644 --- a/scripts/build/cc/100-gcc.sh +++ b/scripts/build/cc/100-gcc.sh @@ -759,6 +759,7 @@ do_gcc_for_build() { gcc_movelibs() { local multi_flags multi_dir multi_os_dir multi_os_dir_gcc multi_root multi_index multi_count local gcc_dir dst_dir + local rel for arg in "$@"; do eval "${arg// /\\ }" @@ -779,6 +780,7 @@ gcc_movelibs() { dst_dir="${multi_root}/lib/${multi_os_dir}" fi CT_SanitizeVarDir dst_dir gcc_dir + rel=$( echo "${gcc_dir#${CT_PREFIX_DIR}/}" | sed 's#[^/]\{1,\}#..#g' ) ls "${gcc_dir}" | while read f; do case "${f}" in @@ -791,6 +793,7 @@ gcc_movelibs() { if [ -f "${gcc_dir}/${f}" ]; then CT_DoExecLog ALL mkdir -p "${dst_dir}" CT_DoExecLog ALL mv "${gcc_dir}/${f}" "${dst_dir}/${f}" + CT_DoExecLog ALL ln -sf "${rel}/${dst_dir#${CT_PREFIX_DIR}/}/${f}" "${gcc_dir}/${f}" fi done } |