Rebased ref, commits from common ancestor:
commit 1df80af41beb071515f79970305e0b59273714a3
Author: Thorsten Behrens <[email protected]>
AuthorDate: Tue Jan 21 17:26:59 2025 +0100
Commit: Thorsten Behrens <[email protected]>
CommitDate: Tue Jan 21 18:25:18 2025 +0100
libtommath: fix -Werror breakage
for bn_s_mp_rand_platform.c:
../8.1/include/shared\minwindef.h(218): error C2220: warning treated as
error - no 'object' file generated
../8.1/include/shared\minwindef.h(218): warning C4255: 'FARPROC': no
function prototype given: converting '()' to '(void)'
../8.1/include/shared\minwindef.h(219): warning C4255: 'NEARPROC': no
function prototype given: converting '()' to '(void)'
../8.1/include/shared\minwindef.h(220): warning C4255: 'PROC': no
function prototype given: converting '()' to '(void)'
Change-Id: I5bbc0127acd722fd8244ab60b12296d7be23507d
diff --git a/external/libtommath/UnpackedTarball_libtommath.mk
b/external/libtommath/UnpackedTarball_libtommath.mk
index 8961a46162c5..4f5490232d21 100644
--- a/external/libtommath/UnpackedTarball_libtommath.mk
+++ b/external/libtommath/UnpackedTarball_libtommath.mk
@@ -14,6 +14,7 @@ $(eval $(call
gb_UnpackedTarball_set_tarball,libtommath,$(LIBTOMMATH_TARBALL)))
$(eval $(call gb_UnpackedTarball_set_patchlevel,libtommath,0))
$(eval $(call gb_UnpackedTarball_add_patches,libtommath,\
+ external/libtommath/no-werror.patch \
))
# vim: set noet sw=4 ts=4:
diff --git a/external/libtommath/no-werror.patch
b/external/libtommath/no-werror.patch
new file mode 100644
index 000000000000..1c10feaa3de3
--- /dev/null
+++ b/external/libtommath/no-werror.patch
@@ -0,0 +1,13 @@
+diff -ur libtommath.org/makefile.msvc libtommath/makefile.msvc
+--- libtommath.org/makefile.msvc 2025-01-21 18:20:58.440687556 +0100
++++ libtommath/makefile.msvc 2025-01-21 18:22:04.832057849 +0100
+@@ -14,7 +14,7 @@
+ CFLAGS = /Ox
+
+ #Compilation flags
+-LTM_CFLAGS = /nologo /I./ /D_CRT_SECURE_NO_WARNINGS
/D_CRT_NONSTDC_NO_DEPRECATE /D__STDC_WANT_SECURE_LIB__=1 /D_CRT_HAS_CXX17=0
/Wall /wd4146 /wd4127 /wd4668 /wd4710 /wd4711 /wd4820 /wd5045 /WX $(CFLAGS)
++LTM_CFLAGS = /nologo /I./ /D_CRT_SECURE_NO_WARNINGS
/D_CRT_NONSTDC_NO_DEPRECATE /D__STDC_WANT_SECURE_LIB__=1 /D_CRT_HAS_CXX17=0
/Wall /wd4146 /wd4127 /wd4668 /wd4710 /wd4711 /wd4820 /wd5045 $(CFLAGS)
+ LTM_LDFLAGS = advapi32.lib
+
+ #Libraries to be created (this makefile builds only static libraries)
+Only in libtommath: makefile.msvc~