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 3688

Summary: cmake / pthread check related patch proposal
Product: SDL Reporter: Juha Niemimäki <juha.niemimaki>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: All   
OS: All   
Attachments: Fix for PTHREAD_MUTEX_RECURSIVE_NP check and restoring the original flags

Description Juha Niemimäki 2017-06-30 11:56:12 UTC
Created attachment 2784 [details]
Fix for PTHREAD_MUTEX_RECURSIVE_NP check and restoring the original flags

Two fixes proposed:

1) Looks like there is a copy-paste issue regarding PTHREAD_MUTEX_RECURSIVE_NP check.

2) Compiler flag restoration doesn't look symmetrical regarding if/endif blocks. Moved to an outer block (if PTHREADS).
Comment 1 Sam Lantinga 2017-07-11 01:40:55 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/4c165b1a0596