package/libraw: depends on BR2_TOOLCHAIN_HAS_SYNC_4
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 20 May 2021 06:47:29 +0000 (08:47 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 20 May 2021 07:19:32 +0000 (09:19 +0200)
libraw needs __sync_fetch_and_add since version 0.20.0 and
https://github.com/LibRaw/LibRaw/commit/d1975cb0e055d2bfe58c9d845c9a3e57c346a2f9

This will fix the following build failure with imagemagick which is
raised since commit 2f47cfade4b298350d056f6d9a7525b837e2ba23:

/home/buildroot/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/9.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/run/instance-0/output-1/host/sparc-buildroot-linux-uclibc/sysroot/usr/lib/libraw_r.so: undefined reference to `__sync_fetch_and_add_4'

Fixes:
 - http://autobuild.buildroot.org/results/900df43bd418d2da0c3ec875db1c5564dd857e94

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/efl/Config.in
package/libraw/Config.in

index 305d1469a751a0983cabbd6210ca140a2a3cb4b8..05ded72cf7487d689c263fe25bb61809b86a4a5a 100644 (file)
@@ -258,6 +258,7 @@ config BR2_PACKAGE_EFL_WEBP
 
 config BR2_PACKAGE_EFL_LIBRAW
        bool "libraw loader"
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libraw
        select BR2_PACKAGE_LIBRAW
        help
          This option enables the Evas generic Libraw loader
index de763cd36adfefea501b7ef88bc3ddeb42d43f3f..631123c2d3bfda86849d90379c8a47070d4d9c6c 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBRAW
        bool "libraw"
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4
        depends on BR2_INSTALL_LIBSTDCPP
        help
          libraw is a raw image manipulation library
@@ -7,4 +8,5 @@ config BR2_PACKAGE_LIBRAW
          http://www.libraw.org/
 
 comment "libraw needs a toolchain w/ C++"
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4
        depends on !BR2_INSTALL_LIBSTDCPP