-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81fd2e9
commit b0c2c89
Showing
4 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
list(APPEND PATCH_FILES | ||
cmake_tweaks.patch | ||
) | ||
|
||
list(APPEND CMAKE_ARGS | ||
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} | ||
-DBUILD_SHARED_LIBS=$<NOT:$<BOOL:${MONOLIBTIC}>> | ||
# Project options. | ||
-DLIBRESSL_APPS=OFF | ||
-DLIBRESSL_TESTS=OFF | ||
-DENABLE_ASM=${WANT_SIMD} | ||
) | ||
|
||
list(APPEND BUILD_CMD COMMAND ninja) | ||
|
||
list(APPEND INSTALL_CMD COMMAND ${CMAKE_COMMAND} --install .) | ||
|
||
if(NOT MONOLIBTIC) | ||
append_shared_lib_install_commands(INSTALL_CMD crypto VERSION 55) | ||
append_shared_lib_install_commands(INSTALL_CMD ssl VERSION 58) | ||
endif() | ||
|
||
external_project( | ||
DOWNLOAD URL 4775b6b187a93c527eeb95a13e6ebd64 | ||
https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-4.0.0.tar.gz | ||
PATCH_FILES ${PATCH_FILES} | ||
CMAKE_ARGS ${CMAKE_ARGS} | ||
BUILD_COMMAND ${BUILD_CMD} | ||
INSTALL_COMMAND ${INSTALL_CMD} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- i/CMakeLists.txt | ||
+++ w/CMakeLists.txt | ||
@@ -1,4 +1,4 @@ | ||
-cmake_minimum_required (VERSION 3.16.4) | ||
+cmake_minimum_required (VERSION 3.16.3) | ||
if(MSVC) | ||
cmake_policy(SET CMP0091 NEW) | ||
endif() | ||
@@ -516,8 +516,8 @@ | ||
# Create pkgconfig files. | ||
set(prefix ${CMAKE_INSTALL_PREFIX}) | ||
set(exec_prefix \${prefix}) | ||
- set(libdir \${exec_prefix}/${CMAKE_INSTALL_LIBDIR}) | ||
- set(includedir \${prefix}/${CMAKE_INSTALL_INCLUDEDIR}) | ||
+ set(libdir \${exec_prefix}/lib) | ||
+ set(includedir \${prefix}/include) | ||
if(PLATFORM_LIBS) | ||
string(REGEX REPLACE ";" " -l" PLATFORM_LDADD ";${PLATFORM_LIBS}") | ||
endif() |