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 - [Patch] Remove "lib" prefix from DLLs when building on Windows on MinGW* toolchains
Summary: [Patch] Remove "lib" prefix from DLLs when building on Windows on MinGW* tool...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.1
Hardware: All Windows (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-01 11:49 UTC by Vitaly Novichkov
Modified: 2018-08-01 16:02 UTC (History)
1 user (show)

See Also:


Attachments
Remove "lib" prefix from built DLLs on MinGW toolchains (883 bytes, patch)
2018-07-01 11:49 UTC, Vitaly Novichkov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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