From 1e97e66bba7fe605b56e109d2c08f5dfc5a7de71 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 13 Feb 2010 05:55:05 -0500 Subject: cross-fix-root: handle no config scripts case If there are no -config scripts to mess with, avoid trying to generate broken symlinks to '*-config'. Signed-off-by: Mike Frysinger --- wrappers/cross-fix-root | 1 + 1 file changed, 1 insertion(+) (limited to 'wrappers/cross-fix-root') 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 -- cgit v1.2.3-65-gdbad