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 - Fix build without threads
Summary: Fix build without threads
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: thread (show other bugs)
Version: 2.0.10
Hardware: x86_64 Linux
: P2 major
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-10 20:38 UTC by Fabrice Fontaine
Modified: 2020-02-10 21:57 UTC (History)
0 users

See Also:


Attachments
Patch (1.17 KB, patch)
2020-02-10 20:38 UTC, Fabrice Fontaine
Details | Diff

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