imlib2: uses dlopen(), not available in static cases
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 29 Apr 2014 19:00:16 +0000 (21:00 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 29 Apr 2014 21:09:00 +0000 (23:09 +0200)
According to the imlib2 people, if you don't support dlopen(), you
have a "crap box":

image.h:16:4: warning: #warning "your crap box doesn't define RTLD_LOCAL !?"

So, let's disable imlib2 when doing static linking.

Fixes:

  http://autobuild.buildroot.net/results/b5e/b5ee859409cd626b769e8a159026e60ec6f29180/

[Peter: fix imlib2 comment as pointed out by Thomas]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/directfb/Config.in
package/giblib/Config.in
package/imlib2/Config.in

index 59e2580ba0fe17c2b203e9f9e30732517a06adf3..e3c93a12ef1225bbc3609522ffe24a7265cb7f9c 100644 (file)
@@ -110,6 +110,10 @@ config BR2_PACKAGE_DIRECTFB_GIF
 config BR2_PACKAGE_DIRECTFB_IMLIB2
        bool "enable IMLIB2 support"
        select BR2_PACKAGE_IMLIB2
+       depends on !BR2_PREFER_STATIC_LIB
+
+comment "imlib2 support needs a toolchain w/ dynamic library"
+       depends on BR2_PREFER_STATIC_LIB
 
 config BR2_PACKAGE_DIRECTFB_JPEG
        bool "enable JPEG support"
index 7eb3da814a1e93d3ebf59fbd364cfc7139364a32..7b8f03851a2d699f6ba777241dc2f0d131eeffa0 100644 (file)
@@ -1,9 +1,13 @@
 config BR2_PACKAGE_GIBLIB
        bool "giblib"
        depends on BR2_PACKAGE_XORG7
+       depends on !BR2_PREFER_STATIC_LIB
        select BR2_PACKAGE_IMLIB2
        select BR2_PACKAGE_IMLIB2_X
        help
          Giblib is a simple library which wraps imlib2.
 
          http://linuxbrit.co.uk/giblib/
+
+comment "giblib support needs a toolchain w/ dynamic library"
+       depends on BR2_PREFER_STATIC_LIB
index 16a94d6ebb155a2b5f8bae78429baafa379decfa..757f10093d7bb8ab187352cc7d0355b9ec03e83c 100644 (file)
@@ -1,6 +1,10 @@
+comment "imlib2 needs a toolchain w/ dynamic library"
+       depends on BR2_PREFER_STATIC_LIB
+
 config BR2_PACKAGE_IMLIB2
        bool "imlib2"
        select BR2_PACKAGE_FREETYPE
+       depends on !BR2_PREFER_STATIC_LIB # dlopen()
        help
          Imlib 2 is the successor to Imlib. This library provides
          routines to load, save and render images in various formats.