TLDR Dev · MISCELLANEOUS
HACKING DLOPEN TO STATICALLY LINK PIPEWIRE
Summary from the TLDR Dev newsletter
Tuple is a pair programming app that wanted to create a fully static Linux executable, but had a big challenge with PipeWire, which it uses for screen capture. PipeWire's core functionality relies on `dlopen` for internal plugin systems (modules and Spa plugins), making traditional static linking impossible. It solved this by developing a "fake dynamic linker" using Zig, which reimplements `dlopen`, `dlsym`, and `stat` to statically link PipeWire's plugins into an internal symbol table.