2 # Copyright (C) 2006-2012 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_MD5SUM
:=107a5be455493861189e9b57a3a51912
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
18 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
21 PKG_LICENSE_FILES
:=COPYRIGHT
23 PKG_MAINTAINER
:=Felix Fietkau
<nbd@openwrt.org
>
28 include $(INCLUDE_DIR
)/package.mk
30 HOST_CFLAGS
+= -I
$(LINUX_DIR
)/user_headers
/include
33 LDFLAGS_FOR_BUILD
="$(HOST_LDFLAGS)" \
34 CPPFLAGS_FOR_BUILD
="$(HOST_CPPFLAGS)" \
35 CFLAGS_FOR_BUILD
="$(HOST_CFLAGS)" \
36 CC_FOR_BUILD
="$(HOST_CC)"
41 TITLE
:=System call tracer
42 URL
:=http
://strace.sourceforge.net
/
45 define Package
/strace
/description
46 A useful diagnostic
, instructional
, and debugging tool. Allows you to track what
47 system calls a program makes while it is running.
51 CCOPT
="$(TARGET_CFLAGS)"
53 define Package
/strace
/install
54 $(INSTALL_DIR
) $(1)/usr
/bin
55 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/strace
$(1)/usr
/bin
/
58 $(eval
$(call BuildPackage
,strace
))