[expat] Fix static builds with mingw (#27137)

Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
This commit is contained in:
Osyotr 2022-10-09 07:13:50 +03:00 committed by GitHub
parent 26a09951e7
commit 77fc723d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- a/expat/CMakeLists.txt
+++ b/expat/CMakeLists.txt
@@ -459,7 +459,7 @@ if(NOT WIN32)
endif()
endif()
-if(MINGW)
+if(MINGW AND EXPAT_SHARED_LIBS)
set_target_properties(expat PROPERTIES SUFFIX "-${LIBCURRENT_MINUS_AGE}.dll")
endif()

View File

@ -9,6 +9,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
"pkgconfig_fix.patch" # https://github.com/libexpat/libexpat/pull/656
"mingw_static_fix.patch" # https://github.com/libexpat/libexpat/pull/658
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" EXPAT_LINKAGE)

View File

@ -1,6 +1,7 @@
{
"name": "expat",
"version": "2.4.9",
"port-version": 1,
"description": "XML parser library written in C",
"homepage": "https://github.com/libexpat/libexpat",
"license": "MIT",

View File

@ -2190,7 +2190,7 @@
},
"expat": {
"baseline": "2.4.9",
"port-version": 0
"port-version": 1
},
"expected-lite": {
"baseline": "0.6.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "755ce6df1ddbca1c1fcb0d2fe7cbd2b5bd074121",
"version": "2.4.9",
"port-version": 1
},
{
"git-tree": "e9bfabcd9e9f47060a34457ad5e28da5e100c027",
"version": "2.4.9",