mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
fix atomic on macOS and all platforms
This commit is contained in:
parent
885b2a6b40
commit
774f1c33ef
1 changed files with 8 additions and 1 deletions
|
@ -3,7 +3,14 @@ MYSRCS = cryptolib.c util.c
|
|||
MYINCLUDES = -I../../common/cryptorf
|
||||
MYCFLAGS =
|
||||
MYDEFS =
|
||||
MYLDLIBS = -lpthread -latomic
|
||||
|
||||
# Atomic
|
||||
# RPi Zero gcc requires -latomic
|
||||
# but MacOSX /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
|
||||
# doesn't recognize option --as-needed
|
||||
ifneq ($(platform),Darwin)
|
||||
MYLDLIBS += -lpthread -Wl,--as-needed -latomic -Wl,--no-as-needed
|
||||
endif
|
||||
|
||||
BINS = cm sm sma sma_multi
|
||||
INSTALLTOOLS = $(BINS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue