Skip to content

Commit

Permalink
Feat[tarjdk]: move to newer version of termux-elf-cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell committed Jul 16, 2024
1 parent 698a651 commit 471ca51
Showing 1 changed file with 9 additions and 8 deletions.
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

0 comments on commit 471ca51

Please sign in to comment.