summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2022-08-22 11:25:35 +0200
committerRay <[email protected]>2022-08-22 11:25:35 +0200
commitae745e4fa8f25e16a2e6964b417454e8a35a61b7 (patch)
tree4d684da97552ea22bdf8fde6e274f11c82eb6011
parente92bc8ca4eaa12ba8068e84a4195073885e132ff (diff)
downloadraylib-ae745e4fa8f25e16a2e6964b417454e8a35a61b7.tar.gz
raylib-ae745e4fa8f25e16a2e6964b417454e8a35a61b7.zip
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...
-rw-r--r--examples/Makefile3
-rw-r--r--src/Makefile2
2 files changed, 5 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile
index a977412e..6a39a1c5 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 1fa63ba6..ea337604 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