libamcodec: needs dynamic library
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 19 Jul 2016 21:19:23 +0000 (23:19 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 19 Jul 2016 21:19:23 +0000 (23:19 +0200)
libamcodec uses <dlfcn.h>, so it requires dynamic library support.

Fixes:

  http://autobuild.buildroot.net/results/b7653c299a60a67b360c98d59d6707ab468ce6f1/

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

index 52778ba87e648af62091ce5204fb90b41d3e0ced..7300259e0ddf3e2f9be9e223e034628fe8810ccd 100644 (file)
@@ -1,11 +1,12 @@
-comment "libamcodec needs a toolchain w/ threads"
+comment "libamcodec needs a toolchain w/ threads, dynamic library"
        depends on BR2_arm || BR2_aarch64
-       depends on !BR2_TOOLCHAIN_HAS_THREADS
+       depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
 
 config BR2_PACKAGE_LIBAMCODEC
        bool "libamcodec"
        depends on BR2_arm || BR2_aarch64
        depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
+       depends on !BR2_STATIC_LIBS # dlfcn.h
        select BR2_PACKAGE_ALSA_LIB
        help
            Interface library for Amlogic media codecs