This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 42873065a6 tools/mkexport: copy full library directly if library
without path
42873065a6 is described below
commit 42873065a65c3e9778489e33d47b89b7418deb14
Author: chao an <[email protected]>
AuthorDate: Fri Mar 17 16:47:45 2023 +0800
tools/mkexport: copy full library directly if library without path
copy full library directly if library without path
Signed-off-by: chao an <[email protected]>
---
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