diff --git a/support/scripts/check-bin-arch b/support/scripts/check-bin-arch index b822cdd60d..700ee3f65e 100755 --- a/support/scripts/check-bin-arch +++ b/support/scripts/check-bin-arch @@ -36,6 +36,12 @@ while read f; do continue fi + # Skip symlinks. Some symlinks may have absolute paths as + # target, pointing to host binaries while we're building. + if [[ -L "${f}" ]]; then + continue + fi + # Get architecture using readelf. We pipe through 'head -1' so # that when the file is a static library (.a), we only take # into account the architecture of the first object file.