mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:13:07 +08:00
[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:
parent
655e1b4dab
commit
47c63128dd
13
ports/nettle/flags.patch
Normal file
13
ports/nettle/flags.patch
Normal 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
|
@ -102,7 +102,9 @@ else()
|
|||||||
REF 9e2bea82b9fb606bffd2d3f648e05248e146e54f #v3.6
|
REF 9e2bea82b9fb606bffd2d3f648e05248e146e54f #v3.6
|
||||||
SHA512 008089eba2ef197a0ec6a266baac485e72051e646d19861f3fb605915a591bc2dd38edcb4ea7eaad958ea5d56f7744d42c25b691b49921a1285edd22f9c90b7f
|
SHA512 008089eba2ef197a0ec6a266baac485e72051e646d19861f3fb605915a591bc2dd38edcb4ea7eaad958ea5d56f7744d42c25b691b49921a1285edd22f9c90b7f
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
PATCHES fix-InstallLibPath.patch
|
PATCHES
|
||||||
|
fix-InstallLibPath.patch
|
||||||
|
flags.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "nettle",
|
"name": "nettle",
|
||||||
"version-string": "3.6",
|
"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.",
|
"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",
|
"homepage": "https://git.lysator.liu.se/nettle/nettle",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
|
@ -4222,7 +4222,7 @@
|
|||||||
},
|
},
|
||||||
"nettle": {
|
"nettle": {
|
||||||
"baseline": "3.6",
|
"baseline": "3.6",
|
||||||
"port-version": 0
|
"port-version": 1
|
||||||
},
|
},
|
||||||
"networkdirect-sdk": {
|
"networkdirect-sdk": {
|
||||||
"baseline": "2.0.1",
|
"baseline": "2.0.1",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "87e3211d256198eb00d854b24b2043efb0fe892d",
|
||||||
|
"version-string": "3.6",
|
||||||
|
"port-version": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "c5667fa4f9c8aae21162042f6193069cdb994337",
|
"git-tree": "c5667fa4f9c8aae21162042f6193069cdb994337",
|
||||||
"version-string": "3.6",
|
"version-string": "3.6",
|
||||||
|
Loading…
Reference in New Issue
Block a user