Fix SDL threading on macOS/Linux.

And fixup pkg-config check for SDL on Linux.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
Pāvels Nadtočajevs 2025-06-25 06:39:23 +03:00 committed by Rémi Verschelde
parent 05640191e7
commit 71dd7b5712
No known key found for this signature in database
GPG key ID: C3336907360768E1
4 changed files with 9 additions and 63 deletions

View file

@ -397,7 +397,7 @@ def configure(env: "SConsEnvironment"):
if env["sdl"]:
if env["builtin_sdl"]:
env.Append(CPPDEFINES=["SDL_ENABLED"])
elif os.system("pkg-config --exists fontconfig") == 0: # 0 means found
elif os.system("pkg-config --exists sdl3") == 0: # 0 means found
env.ParseConfig("pkg-config sdl3 --cflags --libs")
env.Append(CPPDEFINES=["SDL_ENABLED"])
else: