aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2021-05-27 04:29:52 +0800
committerGitHub <noreply@github.com>2021-05-26 13:29:52 -0700
commitf2f9f7993a605401ed7f0b79f77349a7264fa95e (patch)
tree02cc105912b24c3e3ff0d9f0493e7ba6e75e6224 /ports
parentf0b32c558ac5782ab3544a4261ad78a61693047b (diff)
downloadvcpkg-f2f9f7993a605401ed7f0b79f77349a7264fa95e.tar.gz
vcpkg-f2f9f7993a605401ed7f0b79f77349a7264fa95e.zip
[vcpkg baseline][libtasn1] Fix static build (#18116)
* [vcpkg baseline][libtasn1] Fix static build * update version record * update baseline * change the fix way to avoid other toolchain doesn't use VCPKG_X_FLAGS * Update versions/l-/libtasn1.json * Update ports/libtasn1/portfile.cmake * Update versions/l-/libtasn1.json
Diffstat (limited to 'ports')
-rw-r--r--ports/libtasn1/portfile.cmake6
-rw-r--r--ports/libtasn1/vcpkg.json1
2 files changed, 7 insertions, 0 deletions
diff --git a/ports/libtasn1/portfile.cmake b/ports/libtasn1/portfile.cmake
index 80ca7d2b8..700bb977e 100644
--- a/ports/libtasn1/portfile.cmake
+++ b/ports/libtasn1/portfile.cmake
@@ -29,6 +29,12 @@ else()
set(VCPKG_CXX_FLAGS "-g -O2")
endif()
+# The upstream doesn't add this macro to the configure
+if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+
+ set(EXTRA_OPTS "${EXTRA_OPTS} CFLAGS=\"$CFLAGS -DASN1_STATIC\"")
+endif()
+
set(ENV{GTKDOCIZE} true)
vcpkg_configure_make(
AUTOCONFIG
diff --git a/ports/libtasn1/vcpkg.json b/ports/libtasn1/vcpkg.json
index f5490dc89..e61d35e03 100644
--- a/ports/libtasn1/vcpkg.json
+++ b/ports/libtasn1/vcpkg.json
@@ -1,6 +1,7 @@
{
"name": "libtasn1",
"version": "4.17.0",
+ "port-version": 1,
"description": "A secure communications library implementing the SSL, TLS and DTLS protocols",
"homepage": "https://www.gnutls.org/",
"supports": "!uwp",