Attempt to use static libs for Linux self-containment

This commit is contained in:
JorySeverijnse 2025-12-17 15:59:57 +01:00
parent 9a740672fd
commit 076d6bf9e6

View File

@ -43,6 +43,13 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
include (CheckIncludeFile) include (CheckIncludeFile)
include (cmake/cpu.cmake) include (cmake/cpu.cmake)
include (cmake/os.cmake) include (cmake/os.cmake)
# For Linux, use static libs from deps to make .so self-contained
if (NOT WIN32)
set(HWLOC_LIBRARIES $ENV{XMRIG_DEPS}/lib/libhwloc.a)
set(UV_LIBRARIES $ENV{XMRIG_DEPS}/lib/libuv.a)
set(OPENSSL_LIBRARIES $ENV{XMRIG_DEPS}/lib/libcrypto.a $ENV{XMRIG_DEPS}/lib/libssl.a)
endif()
include (src/base/base.cmake) include (src/base/base.cmake)
include (src/backend/backend.cmake) include (src/backend/backend.cmake)