Browse Source

weston: add optional libunwind support

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Peter Korsgaard 11 years ago
parent
commit
ee7d28a539
1 changed files with 7 additions and 2 deletions
  1. 7 2
      package/weston/weston.mk

+ 7 - 2
package/weston/weston.mk

@@ -26,8 +26,13 @@ WESTON_CONF_OPT = \
 	--disable-wayland-compositor \
 	--disable-headless-compositor \
 	--disable-weston-launch \
-	--disable-colord \
-	--disable-libunwind
+	--disable-colord
+
+ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
+WESTON_DEPENDENCIES += libunwind
+else
+WESTON_CONF_OPT += --disable-libunwind
+endif
 
 ifeq ($(BR2_PACKAGE_WESTON_FBDEV),y)
 WESTON_CONF_OPT += --enable-fbdev-compositor