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
:= ffe340b10c145a0f85734271e9cce56457d23f21a7ea5931ab32f8cf4e793879
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
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 CONFIGURE_ARGS
+= --enable-mpers
=check
37 INSTALL_STYLE
:= manual
40 ${INSTALL_DIR} ${IDIR_STRACE}/usr
/sbin
41 ${INSTALL_BIN} ${WRKBUILD}/src
/strace
${IDIR_STRACE}/usr
/sbin
43 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk