1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-09 16:05:58 +03:00

[ELF] Fix build issue on Raspberry Pi 4

We need -latomic on ARMv7.
This commit is contained in:
Rui Ueyama 2022-09-01 12:18:37 +08:00
parent 1a0a242c45
commit ea779c36a4

View File

@ -154,7 +154,7 @@ if(NOT APPLE AND NOT WIN32 AND NOT MOLD_MOSTLY_STATIC)
target_link_libraries(mold PRIVATE OpenSSL::Crypto)
endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(riscv64|armv6)")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(riscv64|armv)")
target_link_libraries(mold PRIVATE atomic)
endif()