Rust-SDL2 / rust-sdl2

SDL2 bindings for Rust
MIT License
2.65k stars 465 forks source link

Static link SDL_gfx, SDL_image, SDL_mixer, SDL_ttf #1379

Open finally0 opened 3 months ago

finally0 commented 3 months ago

I was working on getting all the extra libraries to also compile & link statically, but I won't be continuing using SDL2 for the foreseeable future, but to not just throw my changes away, I pushed them into my repo, maybe useful to someone else working on this.

I was able to compile all libraries on Windows & Ubuntu.

https://github.com/finally0/rust-sdl2/tree/static-link-sdl2-libs

mario-hess commented 2 months ago

I really need this, because I can't get sdl2_ttf and sdl2_image to link statically. Can you please explain me how to use this? Thank you.