alsa-utils: needs dynamic library support
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 16 Jan 2016 16:55:03 +0000 (17:55 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 16 Jan 2016 16:55:03 +0000 (17:55 +0100)
Since recent bumps of alsa-lib and alsa-utils, alsa-lib installs
<alsa/topology.h>, which alsa-utils uses to build an alsatplg program
which requires <dlfcn.h>. Therefore, alsa-utils now needs dynamic
library support.

Fixes:

  http://autobuild.buildroot.net/results/7ba954e03822d758e25356935b0dfc2c91d3712a/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/alsa-utils/Config.in

index a08743edbf78e49c0c0fe8ee7237c184982c0a9b..af3d466fde1d30966492f23d6a3425d40a5708ae 100644 (file)
@@ -1,11 +1,12 @@
-comment "alsa-utils needs a toolchain w/ threads"
+comment "alsa-utils needs a toolchain w/ threads, dynamic library"
        depends on BR2_USE_MMU # fork
-       depends on !BR2_TOOLCHAIN_HAS_THREADS
+       depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
 
 config BR2_PACKAGE_ALSA_UTILS
        bool "alsa-utils"
        depends on BR2_USE_MMU # fork
        depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
+       depends on !BR2_STATIC_LIBS # uses dlfcn.h
        select BR2_PACKAGE_ALSA_LIB
        select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
        help