[rtems-source-builder commit] sb: Fix the library handling in rtems-build-dep
Chris Johns
chrisj at rtems.org
Tue May 16 04:08:29 UTC 2023
Module: rtems-source-builder
Branch: master
Commit: 9c1e5c7e010e74505ea2925a0b2caa7553a7a722
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=9c1e5c7e010e74505ea2925a0b2caa7553a7a722
Author: Chris Johns <chrisj at rtems.org>
Date: Sat Apr 22 15:20:34 2023 +1000
sb: Fix the library handling in rtems-build-dep
---
source-builder/sb/rtems-build-dep | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/source-builder/sb/rtems-build-dep b/source-builder/sb/rtems-build-dep
index 48a0823..71c8890 100755
--- a/source-builder/sb/rtems-build-dep
+++ b/source-builder/sb/rtems-build-dep
@@ -154,13 +154,16 @@ if [ ${op} = "library" ]; then
awk 'BEGIN {FS="-L"} {for (i=0;++i<=NF;) if (length($i) > 0) print $i;}')
for p in ${lib_paths_1} ${lib_paths_2}
do
- if [ ${verbose} = yes ]; then
- echo "Library: ${p}/${name}"
- fi
- if ls ${p}/${name} 1> /dev/null 2>&1; then
- echo "found"
- exit 0
- fi
+ for lname in ${name} lib${name}.a
+ do
+ if [ ${verbose} = yes ]; then
+ echo "Library: ${p}/${lname}"
+ fi
+ if ls ${p}/${lname} 1> /dev/null 2>&1; then
+ echo "found"
+ exit 0
+ fi
+ done
done
echo "not-found"
exit 0
More information about the vc
mailing list