libunwind: depend on libatomic_ops when available
authorBaruch Siach <baruch@tkos.co.il>
Thu, 15 May 2014 18:42:41 +0000 (21:42 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 16 May 2014 14:11:20 +0000 (16:11 +0200)
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libunwind/libunwind.mk

index 48dd0ec5bb0810252e32946e64b18d0d4781e114..a75a88848be98db5b36848c3702d1425617ecdd1 100644 (file)
@@ -11,4 +11,8 @@ LIBUNWIND_LICENSE_FILES = COPYING
 LIBUNWIND_LICENSE = MIT
 LIBUNWIND_AUTORECONF = YES
 
+ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS),y)
+LIBUNWIND_DEPENDENCIES = libatomic_ops
+endif
+
 $(eval $(autotools-package))