Răsfoiți Sursa

strace: add option to enable libdw stack tracing

Fixes build with CONFIG_libdw=y.

Signed-off-by: Stijn Tintel <[email protected]>
Stijn Tintel 7 ani în urmă
părinte
comite
7378ca79b9
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 7 1
      package/devel/strace/Makefile

+ 7 - 1
package/devel/strace/Makefile

@@ -54,12 +54,18 @@ system calls a program makes while it is running.
 endef
 
 define Package/strace/config
+config PACKAGE_strace_libdw
+	bool "Enable stack tracing support using libdw"
+	default n
 config PACKAGE_strace_libunwind
 	bool "Enable stack tracing support using libunwind (experimental)"
 	default n
 endef
 
-CONFIGURE_ARGS += --with-libunwind=$(if $(CONFIG_PACKAGE_strace_libunwind),yes,no)
+CONFIGURE_ARGS += \
+	--with-libdw=$(if $(CONFIG_PACKAGE_strace_libdw),yes,no) \
+	--with-libunwind=$(if $(CONFIG_PACKAGE_strace_libunwind),yes,no)
+
 MAKE_FLAGS := \
 	CCOPT="$(TARGET_CFLAGS)"