mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 10:03:07 +08:00
[expat] Fix static builds with mingw (#27137)
Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
This commit is contained in:
parent
26a09951e7
commit
77fc723d47
11
ports/expat/mingw_static_fix.patch
Normal file
11
ports/expat/mingw_static_fix.patch
Normal 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()
|
||||
|
@ -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)
|
||||
|
@ -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",
|
||||
|
@ -2190,7 +2190,7 @@
|
||||
},
|
||||
"expat": {
|
||||
"baseline": "2.4.9",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"expected-lite": {
|
||||
"baseline": "0.6.2",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "755ce6df1ddbca1c1fcb0d2fe7cbd2b5bd074121",
|
||||
"version": "2.4.9",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "e9bfabcd9e9f47060a34457ad5e28da5e100c027",
|
||||
"version": "2.4.9",
|
||||
|
Loading…
Reference in New Issue
Block a user