Does anyone static link SDL2 ? |
Does anyone static link SDL2 ? |
neoaggelos
|
There should be a --static-libs option for sdl2-config, containing the required libraries. On May 14, 2015 7:55 AM, "bilsch01" wrote:
|
|||||||||||||
|
bilsch01
|
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 -lts I 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. |
|||||||||||
|
Dominus
|
I'm static linking on OS X but that needed some tweaking of sdl2-config https://forums.libsdl.org/viewtopic.php?t=10956&highlight=
|
|||||||||||
|
Does anyone static link SDL2 ? |
Bob Rubbens
Guest
|
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:
|
|||||||||||||
|