diff options
Diffstat (limited to 'package/strace/Makefile')
-rw-r--r-- | package/strace/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/strace/Makefile b/package/strace/Makefile index eebf68bde..313a3b980 100644 --- a/package/strace/Makefile +++ b/package/strace/Makefile @@ -19,7 +19,11 @@ $(eval $(call PKG_template,STRACE,strace,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEP # fails for x86_64 XAKE_FLAGS+= GCC_HONOUR_COPTS=s +ifeq ($(OS_FOR_BUILD),Darwin) +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" +else XAKE_FLAGS+= CPPFLAGS_FOR_BUILD="-I$(LINUX_DIR)/include/uapi -I$(LINUX_DIR)/arch/$(ADK_TARGET_ARCH)/include/generated" +endif ifeq ($(ADK_TARGET_LIB_MUSL),y) TARGET_CPPFLAGS+= -DMSG_EXCEPT=020000 -D_LARGEFILE64_SOURCE=1 |