--- CMakeLists.txt 2026-06-24 20:54:18.000000000 +0800 +++ CMakeLists.txt 2026-07-12 10:33:49.000000000 +0800 @@ -297,27 +297,7 @@ # require libatomic unconditionally on 32-bit builds. set (LIBATOMIC "") if (CMAKE_SIZEOF_VOID_P EQUAL 4) - # Accept either the unversioned `libatomic.so` (Debian / Fedora / - # Arch ship it via the -dev / -devel package) or the versioned-only - # `libatomic.so.1` (openSUSE ships only the latter -- there's no - # separate -devel package). Listing the unversioned name first keeps - # the canonical path preferred when both are present. - find_library (LIBATOMIC_LIBRARY NAMES atomic libatomic.so.1) - if (LIBATOMIC_LIBRARY) - set (LIBATOMIC atomic) - message (STATUS "32-bit target: linking libatomic for std::atomic (${LIBATOMIC_LIBRARY})") - else() - message (FATAL_ERROR - "32-bit target detected (sizeof(void*) == 4). aMule's " - "download bandwidth throttler holds the byte budget as " - "std::atomic; 32-bit CPUs lack a native 8-byte " - "atomic and the operations expand to library calls " - "(__atomic_*_8) that live in libatomic. libatomic was " - "not found on this system. Install it and re-run cmake:\n" - " Debian/Ubuntu/Mint: libatomic1-dev\n" - " Fedora/RHEL/Rocky/Arch: libatomic\n" - " macOS/MacPorts: bundled with gcc; install gcc14+") - endif() + set (LIBATOMIC atomic) endif() # glib-2.0 headers — needed for the Wayland wl_app_id / X11 WM_CLASS