I'm working on a game that I'm trying to build for Linux and distribute via Steam. At present, there are some dependency issues and I'm wondering about the best approach:
- Bundling .so files with the executable (Is bundling legal/safe? The libraries in question are libopengl.so.0, libopenal.so.1, and libsteam_api.so which I'm less concerned about)
- Including a shell script to check for/prompt installation of dependencies (I can apt install all the necessary dependencies, of course. But I want to be respectful and not force install of something without permission.)
Assuming that we're bundling one or more .so files, I'm unclear on whether LD_PRELOAD or LD_LIBRARY_PATH is the preferred approach to inform the executable about their presence. Which is preferable?