Projects · Tools & libraries

Libstrangle dlsym Fix

Stable 2026 Maintainer of the fork

A fork of milaq's libstrangle frame limiter with the __libc_dlsym lookup corrected, so OpenGL frame limiting works again on current glibc.

libstrangle limits frame rates by hooking OpenGL calls (and Vulkan, through a layer). Newer glibc versions no longer export __libc_dlsym the way it expected, so the hook failed to resolve and OpenGL games stopped working under it, with undefined symbol: __libc_dlsym unless STRANGLE_VKONLY was set. The fork fixes the symbol lookup so it loads again.

The fix asks libdl.so.2 for the real dlsym through dlvsym (version GLIBC_2.2.5) and falls back to dlsym(RTLD_NEXT, ...). Everything else is milaq's original, and the credit for it is his.