forked from blender/blender
Currently on Windows some dependencies are built with MinGW/GCC 3.x this commit removes that, in favor of building them with MSVC via msys2. This will make it easier in the future to offer Win/Arm64 builds of blender. Notable changes: - This change drops support for the external libxvid library in favor of ffmpegs built in support for this format. This has been done with permission from the VFX module. Pull Request: blender/blender#108983 blender/blender#105502
67 lines
2.6 KiB
Diff
67 lines
2.6 KiB
Diff
diff -Naur gmp-6.2.1-clean/Makefile.am gmp-6.2.1-dirty/Makefile.am
|
|
--- gmp-6.2.1-clean/Makefile.am 2020-11-14 18:45:09.000000000 +0000
|
|
+++ gmp-6.2.1-dirty/Makefile.am 2023-01-24 13:06:03.527956700 +0000
|
|
@@ -112,7 +112,7 @@
|
|
LIBGMPXX_LT_AGE = 6
|
|
|
|
|
|
-SUBDIRS = tests mpn mpz mpq mpf printf scanf rand cxx demos tune doc
|
|
+SUBDIRS = tests mpn mpz mpq mpf printf scanf rand cxx demos tune
|
|
|
|
EXTRA_DIST = configfsf.guess configfsf.sub .gdbinit INSTALL.autoconf \
|
|
COPYING.LESSERv3 COPYINGv2 COPYINGv3
|
|
diff -Naur gmp-6.2.1-clean/Makefile.in gmp-6.2.1-dirty/Makefile.in
|
|
--- gmp-6.2.1-clean/Makefile.in 2020-11-14 18:45:16.000000000 +0000
|
|
+++ gmp-6.2.1-dirty/Makefile.in 2023-01-24 13:06:47.691201700 +0000
|
|
@@ -572,7 +572,7 @@
|
|
LIBGMPXX_LT_CURRENT = 10
|
|
LIBGMPXX_LT_REVISION = 1
|
|
LIBGMPXX_LT_AGE = 6
|
|
-SUBDIRS = tests mpn mpz mpq mpf printf scanf rand cxx demos tune doc
|
|
+SUBDIRS = tests mpn mpz mpq mpf printf scanf rand cxx demos tune
|
|
|
|
# Put asl.h here for now.
|
|
|
|
diff -Naur gmp-6.2.1-clean/configure gmp-6.2.1-dirty/configure
|
|
--- gmp-6.2.1-clean/configure 2020-11-14 18:45:15.000000000 +0000
|
|
+++ gmp-6.2.1-dirty/configure 2023-01-24 14:06:26.822206200 +0000
|
|
@@ -12142,8 +12142,8 @@
|
|
#
|
|
if test "$enable_shared" = yes; then
|
|
GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
|
|
- LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
|
|
- LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
|
|
+ #LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
|
|
+ #LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
|
|
LIBGMP_DLL=1
|
|
fi
|
|
;;
|
|
diff -Naur gmp-6.2.1-clean/gmp-h.in gmp-6.2.1-dirty/gmp-h.in
|
|
--- gmp-6.2.1-clean/gmp-h.in 2020-11-14 18:45:09.000000000 +0000
|
|
+++ gmp-6.2.1-dirty/gmp-h.in 2023-01-24 14:07:02.962184400 +0000
|
|
@@ -398,7 +398,7 @@
|
|
|
|
/* Microsoft's C compiler accepts __inline */
|
|
#ifdef _MSC_VER
|
|
-#define __GMP_EXTERN_INLINE __inline
|
|
+#define __GMP_EXTERN_INLINE static __inline
|
|
#endif
|
|
|
|
/* Recent enough Sun C compilers want "inline" */
|
|
diff -Naur gmp-6.2.1-clean/mpz/inp_raw.c gmp-6.2.1-dirty/mpz/inp_raw.c
|
|
--- gmp-6.2.1-clean/mpz/inp_raw.c 2020-11-14 18:45:09.000000000 +0000
|
|
+++ gmp-6.2.1-dirty/mpz/inp_raw.c 2023-01-24 10:24:26.379294800 +0000
|
|
@@ -88,8 +88,11 @@
|
|
|
|
abs_csize = ABS (csize);
|
|
|
|
+ if (UNLIKELY (abs_csize > ~(mp_bitcnt_t) 0 / 8))
|
|
+ return 0; /* Bit size overflows */
|
|
+
|
|
/* round up to a multiple of limbs */
|
|
- abs_xsize = BITS_TO_LIMBS (abs_csize*8);
|
|
+ abs_xsize = BITS_TO_LIMBS ((mp_bitcnt_t) abs_csize * 8);
|
|
|
|
if (abs_xsize != 0)
|
|
{
|