aboutsummaryrefslogtreecommitdiff
path: root/package/strace/strace.mk
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2018-11-27 12:16:56 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-28 21:53:22 +0100
commitfe3d60edf292a3c4609ccda5527f113297ac9d44 (patch)
tree28c088798e3490e224e3165b56e3de912a7de155 /package/strace/strace.mk
parentd6b68e6b6a81985ff5bcb9836d0d02c1fbed3e47 (diff)
downloadbuildroot-fe3d60edf292a3c4609ccda5527f113297ac9d44.tar.gz
buildroot-fe3d60edf292a3c4609ccda5527f113297ac9d44.tar.bz2
package/strace: don't remove strace-graph unconditionally
strace-graph is a perl script. This script is removed unconditionally since commit 720c0ca5ba7 ("strace: convert to makefile.autotools.in format") from 2008. Since then Buildroot added support for perl on target. Don't remove strace-graph when perl is built for target. Signed-off-by: Baruch Siach <baruch@tkos.co.il> [Thomas: move the hook definition inside the condition.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/strace/strace.mk')
-rw-r--r--package/strace/strace.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/strace/strace.mk b/package/strace/strace.mk
index 471dbc2e1d..6efe9c5174 100644
--- a/package/strace/strace.mk
+++ b/package/strace/strace.mk
@@ -34,10 +34,12 @@ else
STRACE_CONF_OPTS += --without-libiberty
endif
+ifeq ($(BR2_PACKAGE_PERL),)
define STRACE_REMOVE_STRACE_GRAPH
rm -f $(TARGET_DIR)/usr/bin/strace-graph
endef
STRACE_POST_INSTALL_TARGET_HOOKS += STRACE_REMOVE_STRACE_GRAPH
+endif
$(eval $(autotools-package))