cmake & rpi, take 2

This commit is contained in:
Philippe Teuwen 2020-04-22 14:57:30 +02:00
commit 05e7def3d5

View file

@ -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 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") set_target_properties(proxmark3 PROPERTIES COMPILE_FLAGS "-I/usr/local/opt/readline/include")
else (APPLE) else (APPLE)
# required for Raspberry Pi, but breaks with clang (OSX) # required for Raspberry Pi, but breaks with clang (OSX). Need to be at the end of the linker line.
set_target_properties(proxmark3 PROPERTIES LINK_FLAGS "-Wl,--as-needed -latomic -Wl,--no-as-needed") set(ADDITIONAL_LNK "-Wl,--as-needed -latomic -Wl,--no-as-needed")
endif (APPLE) endif (APPLE)