Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat[tarjdk]: move to newer version of termux-elf-cleaner #28

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions 8_tarjdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ if [[ "$BUILD_IOS" != "1" ]]; then
unset AR AS CC CXX LD OBJCOPY RANLIB STRIP CPPFLAGS LDFLAGS
git clone https://github.com/termux/termux-elf-cleaner || true
cd termux-elf-cleaner
# This is the last commit that uses autoconf, newer builds are using cmake
git checkout eab198c72a020e883b79f99b70a5aa0243dbf0a8
autoreconf --install
bash configure
make CFLAGS=-D__ANDROID_API__=${API}
cd ..
mkdir build
cd build
export CFLAGS=-D__ANDROID_API__=${API}
cmake ..
make -j4
unset CFLAGS
cd ../..

findexec() { find $1 -type f -name "*" -not -name "*.o" -exec sh -c '
case "$(head -n 1 "$1")" in
Expand All @@ -24,8 +25,8 @@ exit 1
' sh {} \; -print
}

findexec jreout | xargs -- ./termux-elf-cleaner/termux-elf-cleaner
findexec jdkout | xargs -- ./termux-elf-cleaner/termux-elf-cleaner
findexec jreout | xargs -- ./termux-elf-cleaner/build/termux-elf-cleaner
findexec jdkout | xargs -- ./termux-elf-cleaner/build/termux-elf-cleaner

fi

Expand Down
Loading