Skip to content

Commit

Permalink
Use static openssl3
Browse files Browse the repository at this point in the history
  • Loading branch information
geneotech committed Feb 13, 2024
1 parent eeb7672 commit bce2f32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1927,7 +1927,7 @@ if (BUILD_OPENSSL)
# Static linking of SSL makes compilation on Linux a pain.
# Let's do it for Windows and Apple only

if (NOT LINUX)
if (HEADLESS OR NOT LINUX)
set(OPENSSL_USE_STATIC_LIBS TRUE)
endif()

Expand Down
6 changes: 1 addition & 5 deletions cmake/linux_actions/install_openssl3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,12 @@ cd "${OPENSSL_VERSION}/"

echo "OpenSSL3: Calling ./config"
# Configure OpenSSL
sudo ./config
sudo ./config no-shared

echo "OpenSSL3: Calling make"
# Build OpenSSL
sudo make

echo "OpenSSL3: Calling make test"
# Run tests (optional, can be skipped with 'make -k test' if some tests fail)
sudo make test

echo "OpenSSL3: Calling make install"
# Install OpenSSL
sudo make install
Expand Down

0 comments on commit bce2f32

Please sign in to comment.