diff options
| author | Phoebe <925731795@qq.com> | 2019-07-07 15:26:12 +0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-07-07 00:26:12 -0700 |
| commit | 832f431527243d1f67f601592343ec0ff2536625 (patch) | |
| tree | f0f486360abd529dcf7f3a96b8ba3eaa331dfc9e | |
| parent | 465990716b0c0c6c9ad569c80caac7b3a6df36c8 (diff) | |
| download | vcpkg-832f431527243d1f67f601592343ec0ff2536625.tar.gz vcpkg-832f431527243d1f67f601592343ec0ff2536625.zip | |
[Poco] Add foundation library missing ipjlpapi.lib (#7169)
| -rw-r--r-- | ports/poco/CONTROL | 2 | ||||
| -rw-r--r-- | ports/poco/fix_foundation_link.patch | 26 | ||||
| -rw-r--r-- | ports/poco/portfile.cmake | 1 |
3 files changed, 28 insertions, 1 deletions
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 <ws2ipdef.h>
+ #include <wincrypt.h>
+ #include <iphlpapi.h>
+-
++#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 <cstring>
+ #include <windows.h>
+ #include <iphlpapi.h>
+-
++#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 |
