1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 83262583a3529f02c3501aa8b8ac772b4cbc03dc934e98bab6e4883626e283a5
10 PKG_DESCR
:= system call trace program
11 PKG_SECTION
:= app
/debug
12 PKG_URL
:= https
://strace.io
13 PKG_SITES
:= https
://strace.io
/files
/$(PKG_VERSION
)/
15 PKG_ARCH_DEPENDS
:= !h8300
!nds32
!cris
17 include ${ADK_TOPDIR}/mk
/package.mk
19 $(eval
$(call PKG_template
,STRACE
,strace
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
21 ifeq ($(OS_FOR_BUILD
),Darwin
)
22 XAKE_FLAGS
+= CPPFLAGS_FOR_BUILD
="-I$(STAGING_TARGET_DIR)/usr/include -I$(LINUX_DIR)/include/uapi -I$(LINUX_DIR)/arch/$(ADK_TARGET_ARCH)/include/generated"
24 XAKE_FLAGS
+= CPPFLAGS_FOR_BUILD
="-I$(LINUX_DIR)/include/uapi -I$(LINUX_DIR)/arch/$(ADK_TARGET_ARCH)/include/generated"
27 ifeq ($(ADK_TARGET_LIB_MUSL
),y
)
28 TARGET_CPPFLAGS
+= -DMSG_EXCEPT
=020000 -D_LARGEFILE64_SOURCE
=1
29 CONFIGURE_ENV
+= st_cv_m32_mpers
=no \
32 ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY
),y
)
33 TARGET_LDFLAGS
+= -pthread
36 AUTOTOOL_STYLE
:= autoreconf
37 CONFIGURE_ARGS
+= --enable-mpers
=check
38 INSTALL_STYLE
:= manual
41 ${INSTALL_DIR} ${IDIR_STRACE}/usr
/sbin
42 ${INSTALL_BIN} ${WRKBUILD}/src
/strace
${IDIR_STRACE}/usr
/sbin
44 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk