FWIW, I only managed to link statically by passing -static to the (that’s
one dash! I think…) to the linker. If I just passed it as a regular
option it wouldn’t work. I also didn’t manage to only static link sdl, and
everything else dynamically. For me it’s either static everything or
dynamic everything. Not sure why I couldn’t get it to work but I suspect my
lack of expertise.On 14 May 2015 at 12:33, bilsch01 wrote:
Right. I tried that also (weeks ago). Using --static-libs with
sdl2-config gives more linker flags but the following two error messages
occur when using those flags:warning: Using ‘dlopen’ in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking.
/usr/bin/ld: cannot find -ltsI tried linking without flag -lts. It compiles but the resulting program
hangs up. Which brings me back to my question: has anybody ever static
linked with SDL2 ? If so, please tell me how.Thanks. Bill S.
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org