Skip to content

Commit

Permalink
src/Makefile: Link libatomic on POWER systems (valkey-io#607)
Browse files Browse the repository at this point in the history
This ensures that fallbacks for unsupported atomic operations are
available for POWER systems.

Signed-off-by: Neal Gompa <[email protected]>
  • Loading branch information
Conan-Kudo authored Jun 9, 2024
1 parent 09b5825 commit 71dd85d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ DEBUG=-g -ggdb
# Linux ARM32 needs -latomic at linking time
ifneq (,$(findstring armv,$(uname_M)))
FINAL_LIBS+=-latomic
else
# Linux POWER needs -latomic at linking time
ifneq (,$(findstring ppc,$(uname_M)))
FINAL_LIBS+=-latomic
endif
endif

ifeq ($(uname_S),SunOS)
Expand Down

0 comments on commit 71dd85d

Please sign in to comment.