Skip to content

Commit

Permalink
scripts/gcc: properly handle duplicated multilib entries
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0n committed Nov 18, 2023
1 parent 032b3a0 commit 12db6b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/build/cc/gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,9 @@ gcc_movelibs()
;;
esac
if [ -f "${gcc_dir}/${f}" ]; then
if [ "${gcc_dir}/${f}" -ef "${dst_dir}/${f}" ]; then
continue
fi
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#${canon_prefix}/}/${f}" "${gcc_dir}/${f}"
Expand Down

0 comments on commit 12db6b2

Please sign in to comment.