glib: Do not use overflow builtins for arm

to prevent `__multi3` from being emitted.

Fixes https://github.com/termux/termux-packages/issues/9571.
This commit is contained in:
Tee KOBAYASHI 2022-03-26 10:18:30 +09:00 committed by xtkoba
parent a174d9ea23
commit 5951ccd4a6
3 changed files with 15 additions and 0 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Library for image loading and manipulation"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.42.8
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/archive/${TERMUX_PKG_VERSION}/gdk-pixbuf-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=e1ed2b86a2196fbc4da94256f275df4df3f74e5669ce50d224cd28636863be82
TERMUX_PKG_DEPENDS="glib, libpng, libtiff, libjpeg-turbo, zstd"

View File

@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
_MAJOR_VERSION=2.72
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://ftp.gnome.org/pub/gnome/sources/glib/${_MAJOR_VERSION}/glib-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=d7bef0d4c4e7a62e08efb8e5f252a01357007b9588a87ff2b463a3857011f79d
TERMUX_PKG_DEPENDS="libffi, libiconv, pcre, libandroid-support, zlib"

View File

@ -0,0 +1,13 @@
--- a/glib/gtypes.h
+++ b/glib/gtypes.h
@@ -429,6 +429,10 @@
#endif
#endif
+#if defined __clang__ && defined __arm__
+#undef _GLIB_HAVE_BUILTIN_OVERFLOW_CHECKS
+#endif
+
#ifdef _GLIB_HAVE_BUILTIN_OVERFLOW_CHECKS
#define g_uint_checked_add(dest, a, b) \