mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-10 01:06:12 +00:00
Packages may not want specific elf files to be stripped, like for debug `-g` test binaries, or may have elf files under different non-standard directories.
10 lines
349 B
Bash
10 lines
349 B
Bash
termux_step_elf_cleaner() {
|
|
termux_step_elf_cleaner__from_paths . \( -path "./bin/*" -o -path "./lib/*" -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"
|
|
}
|