source: packages/utils/strace/Makefile @ 19770

Last change on this file since 19770 was 19770, checked in by thepeople, 7 years ago

this patch fixes a build error described in ticket #6702.

-Raphael

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=strace
12PKG_RELEASE:=3
13
14ifeq ($(CONFIG_LINUX_2_6_25),y)
15  PKG_VERSION:=4.5.16
16  PKG_MD5SUM:=77f66d09aa82981bb6d65fa19a2c1ba9
17  PATCH_DIR:=patches-4.5.16
18else
19  PKG_VERSION:=4.5.19
20  PKG_MD5SUM:=2415e435d61e40315a298c80aced0cda
21endif
22
23PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
24PKG_SOURCE_URL:=@SF/$(PKG_NAME)
25
26PKG_FIXUP:=libtool
27PKG_INSTALL:=1
28
29include $(INCLUDE_DIR)/package.mk
30
31define Package/strace
32  SECTION:=utils
33  CATEGORY:=Utilities
34  TITLE:=System call tracer
35  URL:=http://strace.sourceforge.net/
36endef
37
38define Package/strace/description
39A useful diagnostic, instructional, and debugging tool. Allows you to track what
40system calls a program makes while it is running.
41endef
42
43# needed when compiling against Linux 2.4
44CONFIGURE_VARS += \
45        ac_cv_header_linux_netlink_h=yes
46
47# needed when compiling with an external toolchain
48TARGET_CFLAGS += \
49        -I$(LINUX_DIR)/include
50
51MAKE_FLAGS := \
52        CCOPT="$(TARGET_CFLAGS)"
53
54define Package/strace/install
55        $(INSTALL_DIR) $(1)/usr/bin
56        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/strace $(1)/usr/bin/
57endef
58
59$(eval $(call BuildPackage,strace))
Note: See TracBrowser for help on using the repository browser.