From ae745e4fa8f25e16a2e6964b417454e8a35a61b7 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 22 Aug 2022 11:25:35 +0200 Subject: [PATCH] ADDED: `-latomic` library on Linux (only required for ARM32) This linkage is only required for arm 32bit but I don't know how to detect that specific architecture in the Makefile... --- examples/Makefile | 3 +++ src/Makefile | 2 ++ 2 files changed, 5 insertions(+) diff --git a/examples/Makefile b/examples/Makefile index a977412ed..6a39a1c5b 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -325,6 +325,9 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(RAYLIB_LIBTYPE),SHARED) LDLIBS += -lc endif + + # TODO: On ARM 32bit arch, miniaudio requires atomics library + LDLIBS += -latomic endif ifeq ($(PLATFORM_OS),OSX) # Libraries for OSX 10.9 desktop compiling diff --git a/src/Makefile b/src/Makefile index 1fa63ba65..ea3376046 100644 --- a/src/Makefile +++ b/src/Makefile @@ -504,6 +504,8 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(USE_WAYLAND_DISPLAY),FALSE) LDLIBS += -lX11 endif + # TODO: On ARM 32bit arch, miniaudio requires atomics library + #LDLIBS += -latomic endif ifeq ($(PLATFORM_OS),OSX) LDLIBS = -framework OpenGL -framework Cocoa -framework IOKit -framework CoreAudio -framework CoreVideo