I'm trying to compile an SDL gui application (using SDL, SDL_mixer, SDL_image, and SDL_ttf). While statically linking would be great, just so long as it's portable, even as a binary archive, that's all that I really need.
On Linux, I have tried to create a bash script that is run first with LD_LIBRARY_PATH=path/to/libs ./myProgram, but I end up with the same error, SDL2 not found. On Windows, the lazy method would just be to dump all the dlls with the exe file and it works. Ideally, I'm hoping that there is a way (on both Linux and Windows) to be able to specify a libs folder that has everything and that way it doesn't clutter up around the actual binary. Is there a compiler flag that would do this on Linux and Windows or even a 3rd party tool that is recommended post compilation to make those changes? Thanks for the help.
