gentoo/dev-db/redis/files/redis-6.2.3-ppc-atomic.patch
Sam James 8427ef73ba
dev-db/redis: add 6.2.3
Bug: https://bugs.gentoo.org/788211
Signed-off-by: Sam James <sam@gentoo.org>
2021-05-04 21:41:35 +00:00

20 lines
465 B
Diff

diff --git a/src/Makefile b/src/Makefile
index 5b2cf1c..9e1239d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -87,6 +87,14 @@ FINAL_LIBS=-lm
FINAL_LIBS+=@LUA_LIBS@
DEBUG=-g -ggdb
+ifneq (,$(filter powerpc ppc,$(uname_M)))
+ FINAL_LIBS+=-latomic
+else
+ifneq (,$(findstring ppc,$(uname_M)))
+ FINAL_LIBS+=-latomic
+endif
+endif
+
# Linux ARM32 needs -latomic at linking time
ifneq (,$(findstring armv,$(uname_M)))
FINAL_LIBS+=-latomic