From beb45605dba13fbe54e26a26e78fc6d51651d3eb Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Tue, 18 Sep 2012 07:21:37 +0000 Subject: alsa-lib: require thread support Some parts of alsa-lib correctly use threads only when available, but some other parts, especially certain PCM plugins, unconditionally require threads. While it would certainly be possible to fix alsa-lib to only use threads when available, it probably doesn't make much sense, since on an embedded system that has audio, we are probably powerful enough to enable thread support in the C library. Fixes: http://autobuild.buildroot.org/results/e14469be7f6171f4c8c0c09c8e32943819f7938b/build-end.log Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/alsa-lib/Config.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'package/alsa-lib') diff --git a/package/alsa-lib/Config.in b/package/alsa-lib/Config.in index 8123b5f3e..ca063d856 100644 --- a/package/alsa-lib/Config.in +++ b/package/alsa-lib/Config.in @@ -4,12 +4,20 @@ config BR2_PACKAGE_ALSA_LIB # https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4913 # is fixed select BR2_PACKAGE_ALSA_LIB_PCM + # Even though some parts of alsa-lib use threads only when + # available, some PCM plugins use them unconditionally. Since + # the usage of alsa-lib on no-thread systems is pretty + # unlikely, just require thread support globally for alsa-lib. + depends on BR2_TOOLCHAIN_HAS_THREADS help The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI functionality to the Linux operating system. http://www.alsa-project.org/ +comment "alsa-lib needs threads support in toolchain" + depends on !BR2_TOOLCHAIN_HAS_THREADS + if BR2_PACKAGE_ALSA_LIB config BR2_PACKAGE_ALSA_LIB_PYTHON -- cgit v1.2.3