diff options
-rw-r--r-- | net-libs/picotls/files/picotls-0_pre20220721-disable-e2e.patch | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/net-libs/picotls/files/picotls-0_pre20220721-disable-e2e.patch b/net-libs/picotls/files/picotls-0_pre20220721-disable-e2e.patch index b8f6744f1..aa1c6155e 100644 --- a/net-libs/picotls/files/picotls-0_pre20220721-disable-e2e.patch +++ b/net-libs/picotls/files/picotls-0_pre20220721-disable-e2e.patch @@ -1,8 +1,15 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index a309d7b..3160e89 100644 +index a309d7b..2bbdb49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -31,7 +31,7 @@ IF (WITH_FUSION) +@@ -1,5 +1,6 @@ + CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12) + CMAKE_POLICY(SET CMP0003 NEW) ++SET(CMAKE_POSITION_INDEPENDENT_CODE ON) + + PROJECT(picotls) + +@@ -31,7 +32,7 @@ IF (WITH_FUSION) MESSAGE(STATUS "Enabling 'fusion' AES-GCM engine") ENDIF () @@ -11,7 +18,7 @@ index a309d7b..3160e89 100644 INCLUDE_DIRECTORIES( deps/cifra/src/ext deps/cifra/src -@@ -178,7 +178,7 @@ IF (NOT WITH_FUSION) +@@ -178,7 +179,7 @@ IF (NOT WITH_FUSION) SET_TARGET_PROPERTIES(ptlsbench PROPERTIES EXCLUDE_FROM_ALL 1) ENDIF () @@ -20,3 +27,16 @@ index a309d7b..3160e89 100644 IF (CMAKE_SYSTEM_NAME STREQUAL "Linux") SET(CMAKE_C_FLAGS "-D_GNU_SOURCE -pthread ${CMAKE_C_FLAGS}") +@@ -227,3 +228,12 @@ IF (BUILD_FUZZER) + TARGET_LINK_LIBRARIES(fuzz-client-hello picotls-core picotls-openssl ${OPENSSL_CRYPTO_LIBRARIES} ${LIB_FUZZER}) + + ENDIF() ++ ++INSTALL (DIRECTORY ${CMAKE_SOURCE_DIR}/include/ ++ DESTINATION include ++ FILES_MATCHING PATTERN "*.h") ++ ++INSTALL(TARGETS picotls-core picotls-openssl picotls-minicrypto ++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |