Files
termux-packages/scripts/build/termux_step_elf_cleaner.sh
termux-pacman-bot 26ec4b2ec4 Update repo
2025-05-12 12:48:32 +00:00

10 lines
370 B
Bash

termux_step_elf_cleaner() {
termux_step_elf_cleaner__from_paths . \( -path "./bin/*" -o -path "./lib/*" -o -path "./lib32/*" -o -path "./libexec/*" -o -path "./opt/*" \)
}
termux_step_elf_cleaner__from_paths() {
# Remove entries unsupported by Android's linker:
find "$@" -type f -print0 | xargs -r -0 \
"$TERMUX_ELF_CLEANER" --api-level "$TERMUX_PKG_API_LEVEL"
}