diff options
author | Aisha Tammy <gentoo@aisha.cc> | 2022-09-03 16:23:54 +0000 |
---|---|---|
committer | Aisha Tammy <gentoo@aisha.cc> | 2022-09-03 16:24:17 +0000 |
commit | 47df3b6a671b3eb9ba32fb138ca38369e9115d93 (patch) | |
tree | 5c50556869ddda9984f2d9ad3e6b6e29fc70f3bd /net-libs | |
parent | sys-kernel/uek-sources: drop 5.15.0.2.52.1 (diff) | |
download | guru-47df3b6a671b3eb9ba32fb138ca38369e9115d93.tar.gz guru-47df3b6a671b3eb9ba32fb138ca38369e9115d93.tar.bz2 guru-47df3b6a671b3eb9ba32fb138ca38369e9115d93.zip |
net-libs/picotls: add install target
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to 'net-libs')
-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}) |