From 07492630c8578fbb0e346cbbf4e70e4a6d231bb5 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 19 Aug 2016 19:19:12 +0200 Subject: strace: fix musl mips compile --- package/strace/Makefile | 1 + package/strace/patches/patch-configure_ac | 36 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 package/strace/patches/patch-configure_ac (limited to 'package/strace') diff --git a/package/strace/Makefile b/package/strace/Makefile index 5e58a7308..eebf68bde 100644 --- a/package/strace/Makefile +++ b/package/strace/Makefile @@ -25,6 +25,7 @@ ifeq ($(ADK_TARGET_LIB_MUSL),y) TARGET_CPPFLAGS+= -DMSG_EXCEPT=020000 -D_LARGEFILE64_SOURCE=1 endif +AUTOTOOL_STYLE:= autoreconf INSTALL_STYLE:= manual do-install: diff --git a/package/strace/patches/patch-configure_ac b/package/strace/patches/patch-configure_ac new file mode 100644 index 000000000..ed3675a58 --- /dev/null +++ b/package/strace/patches/patch-configure_ac @@ -0,0 +1,36 @@ +--- strace-4.13.orig/configure.ac 2016-07-19 19:45:06.000000000 +0200 ++++ strace-4.13/configure.ac 2016-08-10 21:09:35.122907482 +0200 +@@ -31,7 +31,7 @@ + + AC_PREREQ(2.57) + AC_INIT([strace], +- m4_esyscmd([./git-version-gen .tarball-version]), ++ [4.13], + [strace-devel@lists.sourceforge.net]) + AC_CONFIG_SRCDIR([strace.c]) + AC_CONFIG_AUX_DIR([.]) +@@ -205,20 +205,20 @@ AC_SUBST(arch_mx32) + if test "$arch" = mips; then + AC_CACHE_CHECK([for _MIPS_SIM], [st_cv__MIPS_SIM], + [AC_COMPUTE_INT([st_cv__MIPS_SIM], [_MIPS_SIM], +- [#include ], ++ [#include ], + [AC_MSG_ERROR([_MIPS_SIM cannot be determined])])]) + + AC_CACHE_CHECK([for MIPS ABI], [st_cv_mips_abi], + [AC_COMPILE_IFELSE( +- [AC_LANG_PROGRAM([[#include ]], ++ [AC_LANG_PROGRAM([[#include ]], + [[int i[_MIPS_SIM == _MIPS_SIM_ABI32 ? 1 : - 1];]])], + [st_cv_mips_abi=o32], + [AC_COMPILE_IFELSE( +- [AC_LANG_PROGRAM([[#include ]], ++ [AC_LANG_PROGRAM([[#include ]], + [[int i[_MIPS_SIM == _MIPS_SIM_NABI32 ? 1 : - 1];]])], + [st_cv_mips_abi=n32], + [AC_COMPILE_IFELSE( +- [AC_LANG_PROGRAM([[#include ]], ++ [AC_LANG_PROGRAM([[#include ]], + [[int i[_MIPS_SIM == _MIPS_SIM_ABI64 ? 1 : - 1];]])], + [st_cv_mips_abi=n64], + [st_cv_mips_abi=unknown])])])]) -- cgit v1.2.3