[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
This commit is contained in:
Jack·Boos·Yu 2021-05-27 04:29:52 +08:00 committed by GitHub
parent f0b32c558a
commit f2f9f7993a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 2 deletions

View File

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

View File

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

View File

@ -761,7 +761,6 @@ libssh:arm-uwp=fail
libssh:x64-uwp=fail
libstk:arm-uwp=fail
libstk:x64-uwp=fail
libtasn1:x64-windows-static-md=fail
libtins:arm-uwp=fail
libtins:x64-uwp=fail
libtomcrypt:arm64-windows=fail

View File

@ -3558,7 +3558,7 @@
},
"libtasn1": {
"baseline": "4.17.0",
"port-version": 0
"port-version": 1
},
"libtcod": {
"baseline": "1.18.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3554f6c03cdac32ddf68540d62c04f6f4644ec94",
"version": "4.17.0",
"port-version": 1
},
{
"git-tree": "63ad8395545c61a38b7564108d2c1c4b7a6bbf12",
"version": "4.17.0",