aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwrappers/cross-fix-root1
1 files changed, 1 insertions, 0 deletions
diff --git a/wrappers/cross-fix-root b/wrappers/cross-fix-root
index 97bb783..c74f9a0 100755
--- a/wrappers/cross-fix-root
+++ b/wrappers/cross-fix-root
@@ -68,6 +68,7 @@ if [ -d usr/bin ] ; then
if [ -n "${CROSS_BINDIR}" ] && [ -d "${CROSS_BINDIR}" ] && [ -n "${CROSS_PREFIX}" ] ; then
cd usr/bin || exit 1
for config in *-config ; do
+ [ -x "${config}" ] || continue # avoid empty globs
# work around a possible race condition if multiple make jobs
# are generating the same symlink at the same time. a `mv`
# is "atomic" (it uses rename()) while a `ln` is actually