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 4971

Summary: Fix build without threads
Product: SDL Reporter: Fabrice Fontaine <fontaine.fabrice>
Component: threadAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: 2.0.10   
Hardware: x86_64   
OS: Linux   
Attachments: Patch

Description Fabrice Fontaine 2020-02-10 20:38:56 UTC
Created attachment 4199 [details]
Patch

An include on SDL_error.h is needed in src/core/linux/SDL_threadprio.c to avoid the following build failure without threads:

/home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: build/.libs/SDL_threadprio.o: in function `SDL_LinuxSetThreadPriority_REAL':
SDL_threadprio.c:(.text+0x0): undefined reference to `SDL_Unsupported'

Fixes:
 - http://autobuild.buildroot.org/results/7f7712c5bd47de4a3fcec1e0d0526fd5a3ecd532
Comment 1 Sam Lantinga 2020-02-10 21:57:14 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/8b93225188c8