summaryrefslogtreecommitdiff
path: root/platform/linuxbsd
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2023-03-09 16:05:52 +0100
committerYuri Sizov <yuris@humnom.net>2023-03-27 17:20:16 +0200
commit516323f4ab139f07c9a46bb35ebb71dc3df5509b (patch)
tree1c2779c0c755a4b1a4d9ec924313674e27b5f57b /platform/linuxbsd
parent597b83aedf8f33e4112de7162f3e68ca1236d138 (diff)
SCons: Cleanup pulseaudio defines for Linux
No need to define _REENTRANT manually when using the system lib, it's part of the pkgconfig cflags. And we were then defining PULSEAUDIO_ENABLED twice. (cherry picked from commit a35586779e716e6f625e7b1b66c6e03d4a4306b3)
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r--platform/linuxbsd/detect.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index 549319a750..54351757cd 100644
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -307,11 +307,12 @@ def configure(env: "Environment"):
if not env["use_sowrap"]:
if os.system("pkg-config --exists libpulse") == 0: # 0 means found
env.ParseConfig("pkg-config libpulse --cflags --libs")
- env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED", "_REENTRANT"])
+ env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED"])
else:
print("Warning: PulseAudio development libraries not found. Disabling the PulseAudio audio driver.")
env["pulseaudio"] = False
- env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED", "_REENTRANT"])
+ else:
+ env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED", "_REENTRANT"])
if env["dbus"]:
if not env["use_sowrap"]: