aboutsummaryrefslogtreecommitdiff
path: root/ports/nghttp2/enable-static.patch
diff options
context:
space:
mode:
authorwangli28 <wangli28@beyondsoft.com>2019-08-15 07:40:16 +0000
committerwangli28 <wangli28@beyondsoft.com>2019-08-15 07:40:55 +0000
commit4daff70a1939a066ea928cb4cb1e200124d82051 (patch)
treefc08579aa77f90f1e9d30f13eac5d861b13caf24 /ports/nghttp2/enable-static.patch
parentedaf3bf91e6b3c33943d5006f6b34fe98b18e1d9 (diff)
downloadvcpkg-4daff70a1939a066ea928cb4cb1e200124d82051.tar.gz
vcpkg-4daff70a1939a066ea928cb4cb1e200124d82051.zip
[nghttp2] Upgrade to version 1.39.2
Diffstat (limited to 'ports/nghttp2/enable-static.patch')
-rw-r--r--ports/nghttp2/enable-static.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/ports/nghttp2/enable-static.patch b/ports/nghttp2/enable-static.patch
deleted file mode 100644
index 18e58daeb..000000000
--- a/ports/nghttp2/enable-static.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
-index 17e422b..b2e7a6e 100644
---- a/lib/CMakeLists.txt
-+++ b/lib/CMakeLists.txt
-@@ -37,8 +37,8 @@ if(WIN32)
- set(NGHTTP2_RES ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
- endif()
-
--# Public shared library
--add_library(nghttp2 SHARED ${NGHTTP2_SOURCES} ${NGHTTP2_RES})
-+# Public library
-+add_library(nghttp2 ${NGHTTP2_SOURCES} ${NGHTTP2_RES})
- set_target_properties(nghttp2 PROPERTIES
- COMPILE_FLAGS "${WARNCFLAGS}"
- VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION}
-@@ -49,6 +49,10 @@ target_include_directories(nghttp2 INTERFACE
- "${CMAKE_CURRENT_SOURCE_DIR}/includes"
- )
-
-+if(NOT BUILD_SHARED_LIBS)
-+ target_compile_definitions(nghttp2 PUBLIC "-DNGHTTP2_STATICLIB")
-+endif()
-+
- if(HAVE_CUNIT OR ENABLE_STATIC_LIB)
- # Static library (for unittests because of symbol visibility)
- add_library(nghttp2_static STATIC ${NGHTTP2_SOURCES})
-