diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-08-19 19:19:12 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-08-19 19:19:29 +0200 |
commit | 07492630c8578fbb0e346cbbf4e70e4a6d231bb5 (patch) | |
tree | eef6a15307ba5ce74d1a700126ab5d0d99d9d05c /package | |
parent | a6541c3628c027b9a3e7d82a763c96dea567d904 (diff) |
strace: fix musl mips compile
Diffstat (limited to 'package')
-rw-r--r-- | package/strace/Makefile | 1 | ||||
-rw-r--r-- | package/strace/patches/patch-configure_ac | 36 |
2 files changed, 37 insertions, 0 deletions
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 <sgidefs.h>], ++ [#include <asm/sgidefs.h>], + [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 <sgidefs.h>]], ++ [AC_LANG_PROGRAM([[#include <asm/sgidefs.h>]], + [[int i[_MIPS_SIM == _MIPS_SIM_ABI32 ? 1 : - 1];]])], + [st_cv_mips_abi=o32], + [AC_COMPILE_IFELSE( +- [AC_LANG_PROGRAM([[#include <sgidefs.h>]], ++ [AC_LANG_PROGRAM([[#include <asm/sgidefs.h>]], + [[int i[_MIPS_SIM == _MIPS_SIM_NABI32 ? 1 : - 1];]])], + [st_cv_mips_abi=n32], + [AC_COMPILE_IFELSE( +- [AC_LANG_PROGRAM([[#include <sgidefs.h>]], ++ [AC_LANG_PROGRAM([[#include <asm/sgidefs.h>]], + [[int i[_MIPS_SIM == _MIPS_SIM_ABI64 ? 1 : - 1];]])], + [st_cv_mips_abi=n64], + [st_cv_mips_abi=unknown])])])]) |