Skip to content

Commit

Permalink
Fix Pi build needing -latomic. Issue #6275.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Nov 29, 2019
1 parent a1b6548 commit f5d4853
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Makefile
Expand Up @@ -77,6 +77,15 @@ FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
FINAL_LIBS=-lm
DEBUG=-g -ggdb

# Linux ARM needs -latomic at linking time
ifneq (,$(filter aarch64 armv,$(uname_M)))
FINAL_LIBS+=-latomic
else
ifneq (,$(findstring armv,$(uname_M)))
FINAL_LIBS+=-latomic
endif
endif

ifeq ($(uname_S),SunOS)
# SunOS
ifneq ($(@@),32bit)
Expand Down

0 comments on commit f5d4853

Please sign in to comment.