-
- Downloads
pv-adverb: Set SDL_DYNAMIC_API to a suitable value on request
It's difficult for users of non-Debian-derived distros to select the
runtime's SDL, especially if they don't know whether the game is 32- or
64-bit, because the expansion of `$LIB` and `$PLATFORM` varies between
distro glibc builds.
However, we can normally predict `$LIB` and `$PLATFORM` well enough to
do the right thing programmatically. For example, if `$PLATFORM` expands
to `i686` in 32-bit processes and `xeon-phi` in 64-bit, then we can
create symlinks at `/tmp/XX/i686/libSDL2-2.0.so.0` and
`/tmp/XX/xeon-phi/libSDL2-2.0.so.0`, and then set
`SDL_DYNAMIC_API='/tmp/XX/${PLATFORM}/libSDL2-2.0.so.0'` to have the
runtime linker dynamically select the correct word size.
While I'm here, we might as well provide the same setup for SDL3.
steamrt/tasks#578
Signed-off-by:
Simon McVittie <smcv@collabora.com>
parent
0658a0e1
No related branches found
No related tags found
Showing
- docs/steam-compat-tool-interface.md 34 additions, 0 deletionsdocs/steam-compat-tool-interface.md
- pressure-vessel/adverb-sdl.c 148 additions, 0 deletionspressure-vessel/adverb-sdl.c
- pressure-vessel/adverb-sdl.h 29 additions, 0 deletionspressure-vessel/adverb-sdl.h
- pressure-vessel/adverb.c 6 additions, 0 deletionspressure-vessel/adverb.c
- pressure-vessel/meson.build 2 additions, 0 deletionspressure-vessel/meson.build
- steam-runtime-tools/steam-internal.h 2 additions, 0 deletionssteam-runtime-tools/steam-internal.h
- steam-runtime-tools/steam.c 10 additions, 0 deletionssteam-runtime-tools/steam.c
Loading
Please register or sign in to comment