From 832f431527243d1f67f601592343ec0ff2536625 Mon Sep 17 00:00:00 2001 From: Phoebe <925731795@qq.com> Date: Sun, 7 Jul 2019 15:26:12 +0800 Subject: [Poco] Add foundation library missing ipjlpapi.lib (#7169) --- ports/poco/CONTROL | 2 +- ports/poco/fix_foundation_link.patch | 26 ++++++++++++++++++++++++++ ports/poco/portfile.cmake | 1 + 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 ports/poco/fix_foundation_link.patch diff --git a/ports/poco/CONTROL b/ports/poco/CONTROL index 1e98ccc74..72c7cc72f 100644 --- a/ports/poco/CONTROL +++ b/ports/poco/CONTROL @@ -1,5 +1,5 @@ Source: poco -Version: 2.0.0-pre-2 +Version: 2.0.0-pre-3 Build-Depends: expat, libpq, pcre, sqlite3, zlib Description: Modern, powerful open source C++ class libraries for building network and internet-based applications that run on desktop, server, mobile and embedded systems. Homepage: https://github.com/pocoproject/poco diff --git a/ports/poco/fix_foundation_link.patch b/ports/poco/fix_foundation_link.patch new file mode 100644 index 000000000..f3af572b1 --- /dev/null +++ b/ports/poco/fix_foundation_link.patch @@ -0,0 +1,26 @@ +diff --git a/Foundation/src/Environment_WIN32.cpp b/Foundation/src/Environment_WIN32.cpp +index 3cca5c7..8ed1df2 100644 +--- a/Foundation/src/Environment_WIN32.cpp ++++ b/Foundation/src/Environment_WIN32.cpp +@@ -23,7 +23,7 @@ + #include + #include + #include +- ++#pragma comment(lib, "IPHLPAPI.lib") + + namespace Poco { + +diff --git a/Foundation/src/Environment_WINCE.cpp b/Foundation/src/Environment_WINCE.cpp +index 62f19bc..d409356 100644 +--- a/Foundation/src/Environment_WINCE.cpp ++++ b/Foundation/src/Environment_WINCE.cpp +@@ -22,7 +22,7 @@ + #include + #include + #include +- ++#pragma comment(lib, "IPHLPAPI.lib") + + namespace Poco { + diff --git a/ports/poco/portfile.cmake b/ports/poco/portfile.cmake index 46d9a439c..f6a1255aa 100644 --- a/ports/poco/portfile.cmake +++ b/ports/poco/portfile.cmake @@ -19,6 +19,7 @@ vcpkg_from_github( unbundled_pdf.patch # Add the support of arm64-windows arm64_pcre.patch + fix_foundation_link.patch ) # define Poco linkage type -- cgit v1.2.3