Skip to content

Commit

Permalink
Merge pull request redis#6975 from dustinmm80/add-arm-latomic-linking
Browse files Browse the repository at this point in the history
Fix Pi building needing -latomic, 5.0 branch backport
  • Loading branch information
antirez authored Mar 12, 2020
2 parents fd44130 + b593140 commit 2bea502
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
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 2bea502

Please sign in to comment.