From 42873065a65c3e9778489e33d47b89b7418deb14 Mon Sep 17 00:00:00 2001 From: chao an Date: Fri, 17 Mar 2023 16:47:45 +0800 Subject: [PATCH] tools/mkexport: copy full library directly if library without path copy full library directly if library without path Signed-off-by: chao an --- tools/mkexport.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/mkexport.sh b/tools/mkexport.sh index 2ab5cc8064..14d3e39e49 100755 --- a/tools/mkexport.sh +++ b/tools/mkexport.sh @@ -423,6 +423,11 @@ for lib in ${EXTRA_LIBS}; do lib=`echo "${lib}" | sed -e "s/-l/lib/" -e "s/$/${LIBEXT}/"` fi + if [ -f "${lib}" ]; then + cp -a ${lib} ${EXPORTDIR}/libs + continue + fi + for path in ${EXTRA_LIBPATHS}; do # Skip the library path options