2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_SOURCE_URL
:=https
://strace.io
/files
/$(PKG_VERSION
)
17 PKG_HASH
:=1f4e59fc1edfa2bfb4adf2a748623dc25b105ec79713dd84404199f91b0b0634
20 PKG_LICENSE_FILES
:=COPYRIGHT
21 PKG_CPE_ID
:=cpe
:/a
:paul_kranenburg
:strace
23 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
26 PKG_CONFIG_DEPENDS
:=CONFIG_PACKAGE_strace_libunwind
29 include $(INCLUDE_DIR
)/package.mk
31 HOST_CFLAGS
+= -I
$(LINUX_DIR
)/user_headers
/include
34 LDFLAGS_FOR_BUILD
="$(HOST_LDFLAGS)" \
35 CPPFLAGS_FOR_BUILD
="$(HOST_CPPFLAGS)" \
36 CFLAGS_FOR_BUILD
="$(HOST_CFLAGS)" \
37 CC_FOR_BUILD
="$(HOST_CC)"
42 TITLE
:=System call tracer
43 DEPENDS
:=+PACKAGE_strace_libunwind
:libunwind
44 URL
:=http
://strace.sourceforge.net
/
47 define Package
/strace
/description
48 A useful diagnostic
, instructional
, and debugging tool. Allows you to track what
49 system calls a program makes while it is running.
52 define Package
/strace
/config
53 config PACKAGE_strace_libunwind
54 bool
"Enable stack tracing support using libunwind (experimental)"
59 --with-libunwind
=$(if
$(CONFIG_PACKAGE_strace_libunwind
),yes
,no
) \
62 CCOPT
="$(TARGET_CFLAGS)"
64 define Package
/strace
/install
65 $(INSTALL_DIR
) $(1)/usr
/bin
66 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/strace
$(1)/usr
/bin
/
69 $(eval
$(call BuildPackage
,strace
))