From 869d96f1185789fbbbb77b3ac20b5295f885eb34 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 22 Apr 2020 14:14:28 +0200 Subject: [PATCH] cmake: fix rpi --- client/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index a1de6abb0..82842fa5c 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -248,6 +248,9 @@ target_include_directories(proxmark3 PRIVATE if (APPLE) set_target_properties(proxmark3 PROPERTIES LINK_FLAGS "-Wl,-F/Library/Frameworks, -L/usr/local/opt/readline/lib") set_target_properties(proxmark3 PROPERTIES COMPILE_FLAGS "-I/usr/local/opt/readline/include") +else (APPLE) + # required for Raspberry Pi, but breaks with clang (OSX) + set_target_properties(proxmark3 PROPERTIES LINK_FLAGS "-Wl,--as-needed -latomic -Wl,--no-as-needed") endif (APPLE)