src/Makefile: Link libatomic on POWER systems (#607)

This ensures that fallbacks for unsupported atomic operations are
available for POWER systems.

Signed-off-by: Neal Gompa <neal@gompa.dev>
This commit is contained in:
Neal Gompa (ニール・ゴンパ) 2024-06-09 18:09:08 -04:00 committed by GitHub
parent 09b5825b26
commit 71dd85dc5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)