Update repo

This commit is contained in:
termux-pacman-bot
2022-11-01 20:40:50 +00:00
parent 4d63e31817
commit 925dfdd6e6
2 changed files with 4 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ termux_step_setup_toolchain() {
# toolchain setup to ensure that everyone gets an updated
# toolchain
if [ "${TERMUX_NDK_VERSION}" = 25b ]; then
TERMUX_STANDALONE_TOOLCHAIN+="-v0"
TERMUX_STANDALONE_TOOLCHAIN+="-v1"
termux_setup_toolchain_25b
elif [ "${TERMUX_NDK_VERSION}" = 23c ]; then
TERMUX_STANDALONE_TOOLCHAIN+="-v2"

View File

@@ -196,12 +196,14 @@ termux_setup_toolchain_25b() {
# Remove <spawn.h> as it's only for future (later than android-27).
# Remove <zlib.h> and <zconf.h> as we build our own zlib.
# Remove unicode headers provided by libicu.
# Remove KRH/khrplatform.h provided by mesa.
# Remove KHR/khrplatform.h provided by mesa.
# Remove GLES, GLES2, and GLES3 provided by mesa.
# Remove execinfo provided by libandroid-execinfo.
# Remove NDK vulkan headers.
rm usr/include/{sys/{capability,shm,sem},{glob,iconv,spawn,zlib,zconf},KHR/khrplatform,execinfo}.h
rm usr/include/unicode/{char16ptr,platform,ptypes,putil,stringoptions,ubidi,ubrk,uchar,uconfig,ucpmap,udisplaycontext,uenum,uldnames,ulocdata,uloc,umachine,unorm2,urename,uscript,ustring,utext,utf16,utf8,utf,utf_old,utypes,uvernum,uversion}.h
rm -Rf usr/include/vulkan
rm -Rf usr/include/GLES{,2,3}
sed -i "s/define __ANDROID_API__ __ANDROID_API_FUTURE__/define __ANDROID_API__ $TERMUX_PKG_API_LEVEL/" \
usr/include/android/api-level.h