summaryrefslogtreecommitdiffstats
path: root/package/sawman/sawman.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/sawman/sawman.mk')
-rw-r--r--package/sawman/sawman.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/sawman/sawman.mk b/package/sawman/sawman.mk
index 495687820..c2d4b7a80 100644
--- a/package/sawman/sawman.mk
+++ b/package/sawman/sawman.mk
@@ -9,7 +9,11 @@ SAWMAN_SITE:=http://www.directfb.org/downloads/Extras
SAWMAN_INSTALL_STAGING = YES
SAWMAN_INSTALL_TARGET = YES
SAWMAN_CONF_ENV = LDFLAGS="-L$(STAGING_DIR)/usr/lib -Wl,--rpath-link -Wl,$(STAGING_DIR)/usr/lib"
+ifeq ($(BR2_ENABLE_DEBUG),y)
+SAWMAN_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install
+else
SAWMAN_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install-strip
+endif
SAWMAN_DEPENDENCIES = directfb
$(eval $(call AUTOTARGETS,package,sawman))