20 lines
813 B
Diff
20 lines
813 B
Diff
|
From: cunix@mail.de
|
||
|
Date: 2023-03-09 22:00:00
|
||
|
Subject: scons 4.5.1 regression
|
||
|
References: https://github.com/godotengine/godot/issues/74683
|
||
|
|
||
|
work around regression of scons 4.5.1
|
||
|
expected to be fixed with 4.5.2
|
||
|
|
||
|
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
|
||
|
index 549319a750..0214ebd8bd 100644
|
||
|
--- a/platform/linuxbsd/detect.py
|
||
|
+++ b/platform/linuxbsd/detect.py
|
||
|
@@ -306,6 +306,7 @@ def configure(env: "Environment"):
|
||
|
if env["pulseaudio"]:
|
||
|
if not env["use_sowrap"]:
|
||
|
if os.system("pkg-config --exists libpulse") == 0: # 0 means found
|
||
|
+ env["CPPDEFINES"] = list(env["CPPDEFINES"])
|
||
|
env.ParseConfig("pkg-config libpulse --cflags --libs")
|
||
|
env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED", "_REENTRANT"])
|
||
|
else:
|