Skip to content

Commit

Permalink
Add link -fno-lto option (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkornaukhov03 authored Feb 9, 2024
1 parent d898b74 commit 94ad68f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/init-compilation-flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ if(APPLE)
else()
message(FATAL_ERROR "unsupported arch: ${CMAKE_SYSTEM_PROCESSOR}")
endif()
else()
# Since Ubuntu 22.04 lto is enabled by default; breaks some builds
add_link_options(-fno-lto)
endif()

set(OPENSSL_USE_STATIC_LIBS TRUE)
Expand Down

0 comments on commit 94ad68f

Please sign in to comment.