From 1e8ead50dcb74732e06947e6ecec5a7894b20320 Mon Sep 17 00:00:00 2001 From: Travis Wrightsman Date: Sat, 25 Oct 2025 15:52:41 +0200 Subject: [PATCH] Use pkg-config for recast flags Now that recastnavigation upstream ships a pkg-config file, Godot can rely on it for getting the build-time configuration. --- platform/linuxbsd/detect.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index bc6d4c7bbfb..e1e6886ac0d 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -307,9 +307,7 @@ def configure(env: "SConsEnvironment"): env.ParseConfig("pkg-config libpcre2-32 --cflags --libs") if not env["builtin_recastnavigation"]: - # No pkgconfig file so far, hardcode default paths. - env.Prepend(CPPPATH=["/usr/include/recastnavigation"]) - env.Append(LIBS=["Recast"]) + env.ParseConfig("pkg-config recastnavigation --cflags --libs") if not env["builtin_embree"] and env["arch"] in ["x86_64", "arm64"]: # No pkgconfig file so far, hardcode expected lib name.