2002-05-23 21:21:23 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# strace
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2012-09-28 00:43:16 +02:00
|
|
|
STRACE_VERSION = 4.7
|
|
|
|
STRACE_SOURCE = strace-$(STRACE_VERSION).tar.xz
|
2012-08-26 01:52:48 +02:00
|
|
|
STRACE_SITE = http://downloads.sourceforge.net/project/strace/strace/$(STRACE_VERSION)
|
2012-11-13 02:05:58 +01:00
|
|
|
STRACE_LICENSE = BSD-3c
|
|
|
|
STRACE_LICENSE_FILES = COPYRIGHT
|
2010-12-28 20:10:35 +01:00
|
|
|
|
|
|
|
STRACE_CONF_ENV = ac_cv_header_linux_if_packet_h=yes \
|
2012-10-30 11:59:57 +01:00
|
|
|
ac_cv_header_linux_netlink_h=yes
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2012-10-29 21:35:10 +01:00
|
|
|
ifeq ($(BR2_LARGEFILE),y)
|
|
|
|
# strace gets confused when lfs mode is forced, so don't
|
|
|
|
STRACE_CONF_ENV += \
|
|
|
|
CFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))" \
|
|
|
|
CPPFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))"
|
|
|
|
endif
|
|
|
|
|
2010-09-02 00:16:19 +02:00
|
|
|
define STRACE_REMOVE_STRACE_GRAPH
|
2008-08-04 21:07:41 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/strace-graph
|
2010-09-02 00:16:19 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
STRACE_POST_INSTALL_TARGET_HOOKS += STRACE_REMOVE_STRACE_GRAPH
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|