From 70302be7d02fb384dd9bc09af52ce65ab3e9fb64 Mon Sep 17 00:00:00 2001 From: busybu2 Date: Sun, 16 Mar 2025 21:27:09 +0000 Subject: [PATCH] Link to libatomic for arm-linux-gnueabihf library architecture --- distribution/changelog.txt | 1 + src/openrct2/CMakeLists.txt | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index b949174341..30b7fc3a31 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -11,6 +11,7 @@ - Fix: [#23486] Object selection minimum requirements can be bypassed with close window hotkey. - Fix: [#23743] Parks with guest goals over 32767 do not appear in the scenario list. - Fix: [#23844] Sound effects keep playing when loading another save. +- Fix: [#23881] Compiling on Raspbian/arm-linux-gnueabihf fails. - Fix: [#23891] Inverted Hairpin Coaster track can draw over things above it (original bug). - Fix: [#23892] Gentle banked Wooden Roller Coaster track glitches as trains pass (original bug). - Fix: [#23897] Reverse Freefall Coaster slope up to vertical track piece does not draw a vertical tunnel. diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index d150ad0f3e..490564e798 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -288,3 +288,8 @@ endif () if (UNIX) add_definitions(-D_FILE_OFFSET_BITS=64) endif () + +if (CMAKE_LIBRARY_ARCHITECTURE MATCHES "arm-linux-gnueabihf") + message(STATUS "Linking to armhf libs; adding libatomic") + target_link_libraries(${PROJECT_NAME} atomic) +endif()