abuild: simplify et_dyn/et_exec check

This commit is contained in:
psykose 2023-06-05 06:41:37 +00:00 committed by alice
parent 76ff15a7b1
commit 38e84f9016
1 changed files with 2 additions and 2 deletions

View File

@ -1662,8 +1662,8 @@ scan_shared_objects() {
fi
# now find the so dependencies
scanelf --nobanner --recursive --needed "$datadir" | tr ' ' ':' \
| awk -F ":" '$2 != "" && ($1 == "ET_DYN" || $1 == "ET_EXEC") {print $2}' \
scanelf --nobanner --recursive --needed --etype ET_DYN,ET_EXEC "$datadir" | tr ' ' ':' \
| awk -F ":" '$2 != "" {print $2}' \
| sed 's:,:\n:g' | sort -u \
| while read soname; do
# only add files that are not self provided