vcpkg/ports/nettle/compile.patch
Kai Pastor efa3860de7
[nettle] Update to 3.8.1 (#29780)
* Add export list generation [skip actions]

* Refresh exports using dumpbin

* [nettle] Update to 3.8.1 [skip actions]

* Disable testsuite and examples [skip actions]

* Update exports for x64 [skip actions]

* Update exports for x86 [skip actions]

* Finish update

* Fix installation of DLLs

* Add feature to control tools

* Fix CCAS

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
2023-03-21 12:50:51 -07:00

27 lines
885 B
Diff

diff --git a/streebog.c b/streebog.c
index 7ad619d5e..85609a473 100644
--- a/streebog.c
+++ b/streebog.c
@@ -1233,7 +1233,7 @@ streebog512_compress (struct streebog512_ctx *ctx, const uint8_t *input, uint64_
static void
streebog_final (struct streebog512_ctx *ctx)
{
- uint64_t Z[8] = {};
+ uint64_t Z[8] = {0,0,0,0,0,0,0,0};
unsigned int i;
/* PAD. It does not count towards message length */
diff --git a/Makefile.in b/Makefile.in
index b65ff4960..3887d0c8f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -322,7 +322,7 @@ $(LIBHOGWEED_FORLINK): $(hogweed_OBJS) $(LIBNETTLE_FORLINK)
# For building the various *data.c programs. -lm needed for shadata.
%$(EXEEXT_FOR_BUILD): %.c
- $(CC_FOR_BUILD) $< -lm -o $@
+ $(COMPILE) $(PRE_LDFLAGS) $(LDFLAGS) $(LIBS) $< -o $@
# Explicit dependency.
eccdata$(EXEEXT_FOR_BUILD): mini-gmp.c mini-gmp.h