From 05e7def3d53f715019ab1219bf474f513a09c704 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 22 Apr 2020 14:57:30 +0200 Subject: [PATCH] cmake & rpi, take 2 --- client/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 82842fa5c..29b90366e 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -249,8 +249,8 @@ 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") + # required for Raspberry Pi, but breaks with clang (OSX). Need to be at the end of the linker line. + set(ADDITIONAL_LNK "-Wl,--as-needed -latomic -Wl,--no-as-needed") endif (APPLE)