Repository navigation
Conversation
2 tasks
Renkoto
force-pushed
the
pr1-compat
branch
4 times, most recently
from
November 22, 2026 19:45
9649a6e to
6da267d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses three build and runtime issues encountered when compiling MangoHud against non-glibc C libraries and LLVM's
libc++.)This is part of a series, by the way):
ElfW()macro (include/elfhacks.h,mangohud-next/client/elfhacks.h):ElfW()is a glibc<link.h>extension. Define it from__elf64/__elf32when not already provided by the system headers.src/gl/shim.c):dladdr1(..., RTLD_DL_LINKMAP)is glibc-specific, which previously disabledload_adjacent_opengl_lib()on non-glibc targets. Gatedladdr1on#ifdef RTLD_DL_LINKMAPand fall back to standard POSIXdladdr()(Dl_info::dli_fname) otherwise.std::atomic<std::shared_ptr<T>>(src/overlay_params.cpp): LLVMlibc++does not implement the C++20std::atomic<std::shared_ptr<T>>specialization yet (__cpp_lib_atomic_shared_ptris undefined). Provide a small wrapper using the C++11std::atomic_load_explicit/std::atomic_store_explicitoverloads when__cpp_lib_atomic_shared_ptris unavailable.Impact & Testing
RTLD_DL_LINKMAPand__cpp_lib_atomic_shared_ptrremain active and take the same code paths as before.libc++(including functional verification of the OpenGL shim loading the adjacentlibMangoHud.so). Also expected to unblock Linux builds using Clang +libc++but I don't have a Linux install to confirm that.