Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed Aug 9, 2024
1 parent 83d5583 commit 9bfab27
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions ppkg
Original file line number Diff line number Diff line change
Expand Up @@ -6678,19 +6678,21 @@ __check_elf_files() {

case $1 in
./*)
NEEDED_SHARED_LIBRARY_FILEPATH="./lib/$DT_NEEDED"

if [ -f "$NEEDED_SHARED_LIBRARY_FILEPATH" ] ; then
PACKAGE_ELF_FILES_NEED_SET_RPATH_S1="$PACKAGE_ELF_FILES_NEED_SET_RPATH_S1
$1"
else
NEEDED_SHARED_LIBRARY_FILEPATH="$(find ./lib \( -type f -or -type l \) -name "$DT_NEEDED" -print -quit)"
if [ -d lib ] ; then
NEEDED_SHARED_LIBRARY_FILEPATH="./lib/$DT_NEEDED"

if [ -f "$NEEDED_SHARED_LIBRARY_FILEPATH" ] ; then
PACKAGE_ELF_FILES_NEED_SET_RPATH_S1="$PACKAGE_ELF_FILES_NEED_SET_RPATH_S1
$1"
else
unset NEEDED_SHARED_LIBRARY_FILEPATH
NEEDED_SHARED_LIBRARY_FILEPATH="$(find ./lib \( -type f -or -type l \) -name "$DT_NEEDED" -print -quit)"

if [ -f "$NEEDED_SHARED_LIBRARY_FILEPATH" ] ; then
PACKAGE_ELF_FILES_NEED_SET_RPATH_S1="$PACKAGE_ELF_FILES_NEED_SET_RPATH_S1
$1"
else
unset NEEDED_SHARED_LIBRARY_FILEPATH
fi
fi
fi
esac
Expand Down

0 comments on commit 9bfab27

Please sign in to comment.