Leonid Plyushch
5 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with
2 additions and
2 deletions
-
scripts/build/termux_step_massage.sh
|
@ -19,14 +19,14 @@ termux_step_massage() { |
|
|
if [ "$TERMUX_DEBUG" = "" ]; then |
|
|
if [ "$TERMUX_DEBUG" = "" ]; then |
|
|
# Strip binaries. file(1) may fail for certain unusual files, so disable pipefail. |
|
|
# Strip binaries. file(1) may fail for certain unusual files, so disable pipefail. |
|
|
set +e +o pipefail |
|
|
set +e +o pipefail |
|
|
find \( -path "./bin/*" -o -path "./lib/*" -o -path "./libexec/*" \) -type f | \ |
|
|
find . \( -path "./bin/*" -o -path "./lib/*" -o -path "./libexec/*" \) -type f | \ |
|
|
xargs -r file | grep -E "ELF .+ (executable|shared object)" | cut -f 1 -d : | \ |
|
|
xargs -r file | grep -E "ELF .+ (executable|shared object)" | cut -f 1 -d : | \ |
|
|
xargs -r "$STRIP" --strip-unneeded --preserve-dates |
|
|
xargs -r "$STRIP" --strip-unneeded --preserve-dates |
|
|
set -e -o pipefail |
|
|
set -e -o pipefail |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# Remove entries unsupported by Android's linker: |
|
|
# Remove entries unsupported by Android's linker: |
|
|
find \( -path "./bin/*" -o -path "./lib/*" -o -path "./libexec/*" \) -type f -print0 | xargs -r -0 "$TERMUX_ELF_CLEANER" |
|
|
find . \( -path "./bin/*" -o -path "./lib/*" -o -path "./libexec/*" \) -type f -print0 | xargs -r -0 "$TERMUX_ELF_CLEANER" |
|
|
|
|
|
|
|
|
# Fix shebang paths: |
|
|
# Fix shebang paths: |
|
|
while IFS= read -r -d '' file |
|
|
while IFS= read -r -d '' file |
|
|