parent
d6d30f12c6
commit
c19ec664b8
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,9 @@ endif()
|
|||
|
||||
if("${STATIC}" MATCHES "ON")
|
||||
message(STATUS "Creating a static executable")
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
set(LEAN_EXTRA_LINKER_FLAGS "${LEAN_EXTRA_LINKER_FLAGS} -Wl,--whole-archive -lpthread -Wl,--no-whole-archive")
|
||||
endif()
|
||||
set(LEAN_EXTRA_LINKER_FLAGS "${LEAN_EXTRA_LINKER_FLAGS} -static")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue