FEX/ThunkLibs/libX11/libX11_NativeGuest.cpp
Tony Wasserka cd05cdaa57 Thunks: Make GL guest thunks implicitly load libX11.so
Steam's gameoverlayrenderer.so relies on libX11 symbols to be available
without actually loading that library directly. This works on an unthunked
system since libGL.so depends on libGLX.so, which in turn pulls in libX11.so
at load-time. Adding a fake libX11 dependency to the libGL-guest thunks
reproduces this behavior.
2022-08-04 11:46:26 +02:00

8 lines
379 B
C++

// This file only exists to create a placeholder library to link against for
// libraries that are supposed to implicitly load libX11. At runtime, the guest
// linker will select the library from the RootFS instead, which is then
// replaced by libX11-guest.so.
// Define some symbol so that the linker doesn't consider this library unused
extern "C" void XSetErrorHandler() {}