aboutsummaryrefslogtreecommitdiff
path: root/package/strace/strace.mk
diff options
context:
space:
mode:
authorGravatar Romain Naour <romain.naour@gmail.com>2018-02-25 19:34:14 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-04-06 22:25:38 +0200
commit0577bcb06fc9fdc9e72e7300ee57ad4669ab4ce6 (patch)
tree376a3cfac4ed016d2777ce5fe9646750671bf42e /package/strace/strace.mk
parent6637ee635ead33c4672551be843d35464bc9e544 (diff)
downloadbuildroot-0577bcb06fc9fdc9e72e7300ee57ad4669ab4ce6.tar.gz
buildroot-0577bcb06fc9fdc9e72e7300ee57ad4669ab4ce6.tar.bz2
package/strace: add missing libunwind optional dependency
This improve the reproducible build. Signed-off-by: Romain Naour <romain.naour@gmail.com> [Thomas: mention the libunwind dependency as being needed for 'strace -k' in the Config.in help text, as suggested by Thomas De Schampheleire.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/strace/strace.mk')
-rw-r--r--package/strace/strace.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/strace/strace.mk b/package/strace/strace.mk
index f27dc4155b..0529d79af6 100644
--- a/package/strace/strace.mk
+++ b/package/strace/strace.mk
@@ -11,6 +11,13 @@ STRACE_LICENSE = BSD-3-Clause
STRACE_LICENSE_FILES = COPYING
STRACE_CONF_OPTS = --enable-mpers=check
+ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
+STRACE_DEPENDENCIES += libunwind
+STRACE_CONF_OPTS += --with-libunwind
+else
+STRACE_CONF_OPTS += --without-libunwind
+endif
+
define STRACE_REMOVE_STRACE_GRAPH
rm -f $(TARGET_DIR)/usr/bin/strace-graph
endef