| Summary: | [Patch] Remove "lib" prefix from DLLs when building on Windows on MinGW* toolchains | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Vitaly Novichkov <admin> |
| Component: | build | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | HG 2.1 | ||
| Hardware: | All | ||
| OS: | Windows (All) | ||
| Attachments: | Remove "lib" prefix from built DLLs on MinGW toolchains | ||
Applied this patch after minor hand editing: https://hg.libsdl.org/SDL/rev/abc706dbb7af Thank! :3 |
Created attachment 3265 [details] Remove "lib" prefix from built DLLs on MinGW toolchains When the library is compiling on Windows through CMake and using MinGW toolchain, the final DLL gets the "lib" prefix. When compiling the same library with using MSVC, "lib" prefix doesn't appear. It's a little patch that fixes this on MinGW toolchains. Note that passing of `-DCMAKE_SHARED_LIBRARY_PREFIX="<anything>"` command line argument doesn't affect the final result. The only a way to declare this inside the CMake script.