Force static linking (System wide library) #1817
-
|
Hello! Is it possible to force static linking against a library? For example: links {
"SDL2",
"SDL2_image"
}I have SDL installed system widely from my Linux Dist package manager, and the above always links against the .so (shared) library. Is there a way to tell premake5 to link against the static library instead? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
I want to say that I remember being able to do something like this to force it to be static. links {
"SDL2:static",
"SDL2_image:static"
}That said, I don't know if that is still correct. I cannot find this in unit testing, so I'd be cautious using it. That said, this should probably be something that we support better. |
Beta Was this translation helpful? Give feedback.
I want to say that I remember being able to do something like this to force it to be static.
That said, I don't know if that is still correct. I cannot find this in unit testing, so I'd be cautious using it. That said, this should probably be something that we support better.