diff options
| author | Ray <[email protected]> | 2022-05-20 17:45:36 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-05-20 17:45:36 +0200 |
| commit | 1f806b555dd1ecb7e77797ed0de57d62a6bdd6f0 (patch) | |
| tree | 84622bbd2b41602fa601be07d3f6e6d91b81298c | |
| parent | 789e50406908d1f762f9f6471af7a9b8c20e1675 (diff) | |
| download | raylib-1f806b555dd1ecb7e77797ed0de57d62a6bdd6f0.tar.gz raylib-1f806b555dd1ecb7e77797ed0de57d62a6bdd6f0.zip | |
ADDED: `-latomic` linkage, required by `miniaudio` on ARM 32bit #2452
| -rw-r--r-- | examples/Makefile | 4 | ||||
| -rw-r--r-- | src/Makefile | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile index 50a12e5c..1ab0b6c6 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -349,7 +349,7 @@ endif ifeq ($(PLATFORM),PLATFORM_RPI) # Libraries for Raspberry Pi compiling # NOTE: Required packages: libasound2-dev (ALSA) - LDLIBS = -lraylib -lbrcmGLESv2 -lbrcmEGL -lpthread -lrt -lm -lbcm_host -ldl + LDLIBS = -lraylib -lbrcmGLESv2 -lbrcmEGL -lpthread -lrt -lm -lbcm_host -ldl -latomic ifeq ($(USE_RPI_CROSS_COMPILER),TRUE) LDLIBS += -lvchiq_arm -lvcos endif @@ -357,7 +357,7 @@ endif ifeq ($(PLATFORM),PLATFORM_DRM) # Libraries for DRM compiling # NOTE: Required packages: libasound2-dev (ALSA) - LDLIBS = -lraylib -lGLESv2 -lEGL -lpthread -lrt -lm -lgbm -ldrm -ldl + LDLIBS = -lraylib -lGLESv2 -lEGL -lpthread -lrt -lm -lgbm -ldrm -ldl -latomic endif ifeq ($(PLATFORM),PLATFORM_WEB) # Libraries for web (HTML5) compiling diff --git a/src/Makefile b/src/Makefile index b094099f..f47ab9cd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -509,9 +509,15 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) endif ifeq ($(PLATFORM),PLATFORM_RPI) LDLIBS = -lbrcmGLESv2 -lbrcmEGL -lpthread -lrt -lm -lbcm_host -ldl + ifeq ($(RAYLIB_MODULE_AUDIO),TRUE) + LDLIBS += -latomic + endif endif ifeq ($(PLATFORM),PLATFORM_DRM) LDLIBS = -lGLESv2 -lEGL -ldrm -lgbm -lpthread -lrt -lm -ldl + ifeq ($(RAYLIB_MODULE_AUDIO),TRUE) + LDLIBS += -latomic + endif endif ifeq ($(PLATFORM),PLATFORM_ANDROID) LDLIBS = -llog -landroid -lEGL -lGLESv2 -lOpenSLES -lc -lm |
