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 - SDL2 should not propagate -Wl,--no-undefined flag
Summary: SDL2 should not propagate -Wl,--no-undefined flag
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.1
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-06 14:33 UTC by Jean-Michaël Celerier
Modified: 2020-08-06 14:33 UTC (History)
0 users

See Also:


Attachments

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