We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4209

Summary: [Patch] Remove "lib" prefix from DLLs when building on Windows on MinGW* toolchains
Product: SDL Reporter: Vitaly Novichkov <admin>
Component: buildAssignee: 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

Description Vitaly Novichkov 2018-07-01 11:49:34 UTC
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.
Comment 1 Ozkan Sezer 2018-08-01 15:46:17 UTC
Applied this patch after minor hand editing:
 https://hg.libsdl.org/SDL/rev/abc706dbb7af
Comment 2 Vitaly Novichkov 2018-08-01 16:02:53 UTC
Thank! :3