Always link libatomic
Former-commit-id: 7aeae62f84fe958bcda9925f76180a7e149a337e
This commit is contained in:
parent
fbecb9d5c9
commit
68c455a6d6
15
src/Makefile
15
src/Makefile
@ -83,10 +83,6 @@ ifneq (,$(findstring armv,$(uname_M)))
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(findstring armv,$(uname_M)))
|
|
||||||
FINAL_LIBS+=-latomic
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Backwards compatibility for selecting an allocator
|
# Backwards compatibility for selecting an allocator
|
||||||
ifeq ($(USE_TCMALLOC),yes)
|
ifeq ($(USE_TCMALLOC),yes)
|
||||||
MALLOC=tcmalloc
|
MALLOC=tcmalloc
|
||||||
@ -110,18 +106,9 @@ endif
|
|||||||
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
|
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
|
||||||
FINAL_CXXFLAGS=$(CXX_STD) $(WARN) $(OPT) $(DEBUG) $(CXXFLAGS) $(REDIS_CFLAGS)
|
FINAL_CXXFLAGS=$(CXX_STD) $(WARN) $(OPT) $(DEBUG) $(CXXFLAGS) $(REDIS_CFLAGS)
|
||||||
FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
|
FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
|
||||||
FINAL_LIBS+=-lm -lcurl
|
FINAL_LIBS+=-lm -lcurl -latomic
|
||||||
DEBUG=-g -ggdb
|
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)
|
ifeq ($(uname_S),SunOS)
|
||||||
# SunOS
|
# SunOS
|
||||||
ifneq ($(@@),32bit)
|
ifneq ($(@@),32bit)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user