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 1237

Summary: pkg-config/sdl-config -mwindows flag prevents applications to log on console
Product: SDL Reporter: stefasab
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: 1.2.14   
Hardware: All   
OS: Windows (All)   

Description stefasab 2011-06-24 02:45:25 UTC
The generated pkg-config/sdl-config flags contain the -mwindows flag, which prevents applications compiled with that flag to print on stderr/stdout.

Removing the flag allows them to log on console.

This happens for example when compiling FFmpeg in MinGW.

I suggest to remove the -mwindows from the generated flags, applications may choose to add them when it makes sense, that should be easier that filter-out the flag. Removing the flag doesn't seem to have collateral effects, at least for FFmpeg (and I really don't know the reason why that flag was added in the first place).

Let me know if you need more information.