X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/7106823dfe2454f0c9afa9b8b46f9d85206de2c1..77b0e6966779f5c498e41434b0eb712e36424778:/build-package.sh?ds=sidebyside diff --git a/build-package.sh b/build-package.sh index bcdc5944..2df9b50b 100755 --- a/build-package.sh +++ b/build-package.sh @@ -218,7 +218,7 @@ termux_step_setup_variables() { TERMUX_STANDALONE_TOOLCHAIN="$TERMUX_TOPDIR/_lib/toolchain-${TERMUX_ARCH}-ndk${TERMUX_NDK_VERSION}-api${TERMUX_API_LEVEL}" # Bump the below version if a change is made in toolchain setup to ensure # that everyone gets an updated toolchain: - TERMUX_STANDALONE_TOOLCHAIN+="-v15" + TERMUX_STANDALONE_TOOLCHAIN+="-v17" export TERMUX_TAR="tar" export TERMUX_TOUCH="touch" @@ -564,6 +564,10 @@ termux_step_setup_toolchain() { # ifaddrs.h: Added in android-24 unified headers, use a inline implementation for now. cp "$TERMUX_SCRIPTDIR"/ndk_patches/{elf.h,sysexits.h,ifaddrs.h} $_TERMUX_TOOLCHAIN_TMPDIR/sysroot/usr/include + # Remove from the NDK in favour of that from the libandroid-shmem. + # Also remove as it doesn't work for non-root. + rm $_TERMUX_TOOLCHAIN_TMPDIR/sysroot/usr/include/sys/{shm.h,sem.h} + local _LIBDIR=usr/lib if [ $TERMUX_ARCH = x86_64 ]; then _LIBDIR+=64; fi $TERMUX_ELF_CLEANER $_LIBDIR/*.so @@ -625,6 +629,7 @@ termux_step_patch_package() { sed "s%\@TERMUX_HOME\@%${TERMUX_ANDROID_HOME}%g" | \ patch --silent -p1 done + shopt -u nullglob } # Replace autotools build-aux/config.{sub,guess} with ours to add android targets.