summaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/helpers.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk
index 7f3efaa40..5585f45fe 100644
--- a/toolchain/helpers.mk
+++ b/toolchain/helpers.mk
@@ -22,9 +22,8 @@ copy_toolchain_lib_root = \
DESTDIR="$(strip $3)" ; \
\
LIBS=`(cd $${ARCH_SYSROOT_DIR}; \
- find -L . -path "./lib/$${LIB}.*" -o \
- -path "./usr/lib/$${LIB}.*" -o \
- -path "./usr/$(TOOLCHAIN_EXTERNAL_PREFIX)/lib*/$${LIB}.*" \
+ find -L lib* usr/lib* usr/$(TOOLCHAIN_EXTERNAL_PREFIX)/lib* \
+ -maxdepth 1 -name "$${LIB}.*" 2>/dev/null \
)` ; \
for FILE in $${LIBS} ; do \
LIB=`basename $${FILE}`; \