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 5249

Summary: SDL2 should not propagate -Wl,--no-undefined flag
Product: SDL Reporter: Jean-Michaël Celerier <jeanmichael.celerier>
Component: buildAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: x86_64   
OS: Linux   

Description Jean-Michaël Celerier 2020-08-06 14:33:44 UTC
Hello,

while it is an useful option to have while building SDL itself due to the bugs it can catch, it also causes problem downstream if linking an app to SDL2, as downstream may not want to have this option.

In particular, I stumbled upon this because linking against SDL broke my ASAN builds (ASAN is not compatible with -Wl,--no-undefined as one example - https://github.com/google/sanitizers/issues/380).

Thanks !