mirror of https://github.com/Icinga/icinga2.git
Put `-latomic` to the other `-l`s
to make it compiling on Raspberry Pi OS bullseye.
This commit is contained in:
parent
c4c51a2b56
commit
7270caf226
|
@ -432,10 +432,7 @@ if(NOT MSVC)
|
|||
# ARM settings
|
||||
if("${ARCH}" STREQUAL "arm")
|
||||
check_cxx_source_compiles( "include <atomic>; int main(){ std::atomic<uint_fast64_t> x; x.fetch_add(1); x.sub_add(1); }" CXX_ATOMIC)
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -latomic")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -latomic")
|
||||
set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} -latomic")
|
||||
link_libraries(atomic)
|
||||
endif()
|
||||
|
||||
else()
|
||||
|
|
Loading…
Reference in New Issue