[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>
This commit is contained in:
Ilya Arzhannikov 2021-04-29 02:35:51 +02:00 committed by GitHub
parent 655e1b4dab
commit 47c63128dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 2 deletions

13
ports/nettle/flags.patch Normal file
View File

@ -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

View File

@ -102,7 +102,9 @@ else()
REF 9e2bea82b9fb606bffd2d3f648e05248e146e54f #v3.6
SHA512 008089eba2ef197a0ec6a266baac485e72051e646d19861f3fb605915a591bc2dd38edcb4ea7eaad958ea5d56f7744d42c25b691b49921a1285edd22f9c90b7f
HEAD_REF master
PATCHES fix-InstallLibPath.patch
PATCHES
fix-InstallLibPath.patch
flags.patch
)
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)

View File

@ -1,6 +1,7 @@
{
"name": "nettle",
"version-string": "3.6",
"port-version": 1,
"description": "Nettle is a low-level cryptographic library that is designed to fit easily in more or less any context: In crypto toolkits for object-oriented languages (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.",
"homepage": "https://git.lysator.liu.se/nettle/nettle",
"dependencies": [

View File

@ -4222,7 +4222,7 @@
},
"nettle": {
"baseline": "3.6",
"port-version": 0
"port-version": 1
},
"networkdirect-sdk": {
"baseline": "2.0.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "87e3211d256198eb00d854b24b2043efb0fe892d",
"version-string": "3.6",
"port-version": 1
},
{
"git-tree": "c5667fa4f9c8aae21162042f6193069cdb994337",
"version-string": "3.6",