aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
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",