diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/nettle/compile.patch | |
Diffstat (limited to 'vcpkg/ports/nettle/compile.patch')
| -rw-r--r-- | vcpkg/ports/nettle/compile.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/nettle/compile.patch b/vcpkg/ports/nettle/compile.patch new file mode 100644 index 0000000..168214f --- /dev/null +++ b/vcpkg/ports/nettle/compile.patch @@ -0,0 +1,26 @@ +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
|