summaryrefslogtreecommitdiff
blob: 61a4cc721eb14a029392610f97e7a38fc07d235e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/Makefile b/src/Makefile
index 4b2a31c..4ef853b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -77,6 +77,14 @@ FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
 FINAL_LIBS=-lm
 DEBUG=-g -ggdb
 
+ifneq (,$(filter powerpc ppc,$(uname_M)))
+        FINAL_LIBS+=-latomic
+else
+ifneq (,$(findstring ppc,$(uname_M)))
+        FINAL_LIBS+=-latomic
+endif
+endif
+
 # Linux ARM needs -latomic at linking time
 ifneq (,$(filter aarch64 armv,$(uname_M)))
         FINAL_LIBS+=-latomic