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...
This commit is contained in:
Ray 2022-08-22 11:25:35 +02:00
parent e92bc8ca4e
commit ae745e4fa8
2 changed files with 5 additions and 0 deletions

View file

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

View file

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