Skip to content
Snippets Groups Projects
Commit 152886e9 authored by Sertonix's avatar Sertonix Committed by Natanael Copa
Browse files

abuild: use scanelf -E to filter for ET_DYN

parent 118579f8
No related branches found
No related tags found
No related merge requests found
......@@ -2025,10 +2025,7 @@ default_dbg() {
# assume $pkgbasedir is all one filesystem
mkdir -p "$pkgbasedir/.dbg-tmp"
# note: the subpkgdir doesn't exist when the glob is evaluated
scanelf -Ry "$pkgbasedir"/* | while read type src; do
if [ "$type" != ET_DYN ]; then
continue
fi
scanelf -RyB -E ET_DYN "$pkgbasedir"/* | while read type src; do
local ino dst=$subpkgdir/usr/lib/debug/${src#"$pkgbasedir"/*/}.debug
mkdir -p "${dst%/*}"
ino=$(stat -c %i "$src")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment