Remove redundant -latomic on arm64. (#8867)

(cherry picked from commit ebfbb091096b6f36cf82e9f6e6583b10fd5b5acb)
This commit is contained in:
Yossi Gottlieb 2021-04-26 18:43:57 +03:00 committed by Oran Agra
parent ce288cb559
commit 9d71ac0a6e

View File

@ -93,14 +93,10 @@ 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
# Linux ARM32 needs -latomic at linking time
ifneq (,$(findstring armv,$(uname_M)))
FINAL_LIBS+=-latomic
endif
endif
ifeq ($(uname_S),SunOS)
# SunOS