diff options
author | romeojulietthotel <romejulietthotel@ihubbell.com> | 2016-09-22 22:38:57 -0700 |
---|---|---|
committer | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-09-23 07:38:57 +0200 |
commit | 94d6757a0d7426f6805c6f9d50a8afc0c2f6061a (patch) | |
tree | 3daabb27a7fb8dac1b1997fed3d4068984f7c5f9 /platform | |
parent | 2af6b3dd1b564c5a58fbb16b3c04c791d73e8b26 (diff) |
Use pkgconfig to locate ALSA libs (#6119)
* This allows building when ALSA libs are in a non-standard location. PKG_CONFIG_PATH alone is not enough as the final link fails. Adding this makes the final link succeed.
* The extra LIBS flag for alsa is not needed so removing.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/x11/detect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 356de7b2bc..ba232f6d4e 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -155,7 +155,7 @@ def configure(env): if os.system("pkg-config --exists alsa")==0: print("Enabling ALSA") env.Append(CPPFLAGS=["-DALSA_ENABLED"]) - env.Append(LIBS=['asound']) + env.ParseConfig('pkg-config alsa --cflags --libs') else: print("ALSA libraries not found, disabling driver") |