Ver Fonte

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.

(cherry picked from commit 94d6757a0d7426f6805c6f9d50a8afc0c2f6061a)
romeojulietthotel há 9 anos atrás
pai
commit
228ee4363e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      platform/x11/detect.py

+ 1 - 1
platform/x11/detect.py

@@ -155,7 +155,7 @@ def configure(env):
 	if os.system("pkg-config --exists alsa")==0:
 	if os.system("pkg-config --exists alsa")==0:
 		print("Enabling ALSA")
 		print("Enabling ALSA")
 		env.Append(CPPFLAGS=["-DALSA_ENABLED"])
 		env.Append(CPPFLAGS=["-DALSA_ENABLED"])
-		env.Append(LIBS=['asound'])
+		env.ParseConfig('pkg-config alsa --cflags --libs')
 	else:
 	else:
 		print("ALSA libraries not found, disabling driver")
 		print("ALSA libraries not found, disabling driver")