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 - -lmingw32 and -lSDL2main are not required for building libraries, only applications.
Summary: -lmingw32 and -lSDL2main are not required for building libraries, only applic...
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: main (show other bugs)
Version: 2.0.7
Hardware: x86 Windows 10
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-07 23:38 UTC by hanetzer
Modified: 2018-02-11 08:58 UTC (History)
1 user (show)

See Also:


Attachments

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