]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/strace: add missing libunwind optional dependency
authorRomain Naour <romain.naour@gmail.com>
Sun, 25 Feb 2018 18:34:14 +0000 (19:34 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 6 Apr 2018 20:25:38 +0000 (22:25 +0200)
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>
package/strace/Config.in
package/strace/strace.mk

index b84b3fd179ea0491bde24d76e7b517fd94200de5..c7649e57898dd11d6f9a31810a633c105e04c48a 100644 (file)
@@ -7,6 +7,9 @@ config BR2_PACKAGE_STRACE
          Allows you to track what system calls a program makes
          while it is running.
 
+         If you want 'strace -k' to work, make sure to enable the
+         'libunwind' package.
+
          https://strace.io
 
 comment "strace needs a toolchain w/ headers >= 4.0 on nios2"
index f27dc4155b436b741acb84dec755d8914c300fba..0529d79af6fb19ba4b77a92f8cccb882b411a0bd 100644 (file)
@@ -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