aboutsummaryrefslogtreecommitdiff
path: root/ports/nettle/flags.patch
diff options
context:
space:
mode:
authorIlya Arzhannikov <iarzhannikov@artec-group.com>2021-04-29 02:35:51 +0200
committerGitHub <noreply@github.com>2021-04-28 17:35:51 -0700
commit47c63128dd463b206906598b1707556152d8b7da (patch)
tree481a3ac4b4f0b097123a6fd7f6a8e7bdda6d8b08 /ports/nettle/flags.patch
parent655e1b4dabf4504948518fd0a67a0db76493d6e2 (diff)
downloadvcpkg-47c63128dd463b206906598b1707556152d8b7da.tar.gz
vcpkg-47c63128dd463b206906598b1707556152d8b7da.zip
[Nettle] add cflags to build tools (#17421)
* add cflags for build tools * ./vcpkg x-add-version nettle Co-authored-by: Ilya Arzhannikov <iarzhannikov@artec3d.com>
Diffstat (limited to 'ports/nettle/flags.patch')
-rw-r--r--ports/nettle/flags.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/nettle/flags.patch b/ports/nettle/flags.patch
new file mode 100644
index 000000000..990bd6d3e
--- /dev/null
+++ b/ports/nettle/flags.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile.in b/Makefile.in
+index e5ccfc7..922aa0c 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -309,7 +309,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 $@
++ $(CC_FOR_BUILD) $< $(CFLAGS) -lm -o $@
+
+ # Explicit dependency.
+ eccdata$(EXEEXT_FOR_BUILD): mini-gmp.c mini-gmp.h