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 4029

Summary: -lmingw32 and -lSDL2main are not required for building libraries, only applications.
Product: SDL Reporter: hanetzer
Component: mainAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: 2.0.7   
Hardware: x86   
OS: Windows 10   

Description hanetzer 2018-01-07 23:38:31 UTC
Unsure how one would handle this correctly, but the only time
(on mingw-w64, at least) one needs to link libSDL2main.a and
libmingw32.a (and possibly the -mwindows flag) is when you're
building an actual 'application', that is, something that starts
executing at main().

There should be a way to make sdl2-config or pkg-config and friends
differentiate between 'linking to sdl2 to make a library (like SDL2_ttf)'
and 'linking to sdl2 to make a game/executable'.