diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-16 21:33:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 21:33:40 +0100 |
commit | c0d01dcf6185e9090d6b6a1cd7682404d411b72b (patch) | |
tree | f9cc6102cbac4dbf259c6947394efeb5224e4b06 /platform/linuxbsd | |
parent | ee501453179e5b3bdff10fd0ce39bf6c8f9bb06c (diff) | |
parent | 09f82fa6eaa4dac6dd1743724b82a99906e64861 (diff) |
Merge pull request #46095 from hpvb/dynamic-load-pulse
Dynamically load libpulse.so.0 and libasound.so.1 on Linux
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/detect.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index 13d1fe3237..40d2078ebb 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -310,9 +310,8 @@ def configure(env): if os.system("pkg-config --exists alsa") == 0: # 0 means found print("Enabling ALSA") + env["alsa"] = True env.Append(CPPDEFINES=["ALSA_ENABLED", "ALSAMIDI_ENABLED"]) - # Don't parse --cflags, we don't need to add /usr/include/alsa to include path - env.ParseConfig("pkg-config alsa --libs") else: print("ALSA libraries not found, disabling driver") @@ -320,7 +319,7 @@ def configure(env): if os.system("pkg-config --exists libpulse") == 0: # 0 means found print("Enabling PulseAudio") env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED"]) - env.ParseConfig("pkg-config --cflags --libs libpulse") + env.ParseConfig("pkg-config --cflags libpulse") else: print("PulseAudio development libraries not found, disabling driver") |