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
:=d685f8e65470b7832c3aff60c57ab4459f26ff89f07c10f92bd70ee89efac701
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
33 ifeq ($(ARCH
),aarch64
)
34 CONFIGURE_ARGS
+= --enable-mpers
=check
38 LDFLAGS_FOR_BUILD
="$(HOST_LDFLAGS)" \
39 CPPFLAGS_FOR_BUILD
="$(HOST_CPPFLAGS)" \
40 CFLAGS_FOR_BUILD
="$(HOST_CFLAGS)" \
41 CC_FOR_BUILD
="$(HOST_CC)"
46 TITLE
:=System call tracer
47 DEPENDS
:=+PACKAGE_strace_libunwind
:libunwind
48 URL
:=http
://strace.sourceforge.net
/
51 define Package
/strace
/description
52 A useful diagnostic
, instructional
, and debugging tool. Allows you to track what
53 system calls a program makes while it is running.
56 define Package
/strace
/config
57 config PACKAGE_strace_libdw
58 bool
"Enable stack tracing support using libdw"
60 config PACKAGE_strace_libunwind
61 bool
"Enable stack tracing support using libunwind (experimental)"
66 --with-libdw
=$(if
$(CONFIG_PACKAGE_strace_libdw
),yes
,no
) \
67 --with-libunwind
=$(if
$(CONFIG_PACKAGE_strace_libunwind
),yes
,no
)
70 CCOPT
="$(TARGET_CFLAGS)"
72 define Package
/strace
/install
73 $(INSTALL_DIR
) $(1)/usr
/bin
74 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/strace
$(1)/usr
/bin
/
77 $(eval
$(call BuildPackage
,strace
))