Open Flaise opened 7 years ago
I think this is wait you're looking for, at least for linux: https://doc.rust-lang.org/1.12.1/book/advanced-linking.html#static-linking
I'm not too familiar with static linking with Windows, but there's this reddit thread that talks about it: https://www.reddit.com/r/rust/comments/61pjbp/static_linking_support/
I don't think you need to alter the library to achieve this, but again I might be wrong.
I'd like to statically link SDL2 and SDL2 Mixer into my project. How difficult is that to achieve with this library? I notice there's been another issue posted about static linking while cross-compiling but I don't need to cross-compile. Are there compiler flags I can set somewhere or would it require something more involved like altering the library?