summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch')
-rw-r--r--meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch b/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch
new file mode 100644
index 0000000000..756cd8bb82
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch
@@ -0,0 +1,46 @@
1From 154af50ed7ed8b91838d713052ebf29b0b14f765 Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <armccurdy@gmail.com>
3Date: Mon, 18 Jan 2016 11:00:00 -0800
4Subject: [PATCH] mpers.m4: more robust test for -m32/-mx32 compile support
5
6When using the default OE toolchain for x86-64, the basic checks for
7-m32 and -mx32 compile support in mpers.m4 pass but later attempts to
8actually use the toolchain with -m32 fail, e.g.
9
10 | In file included from /home/andre/build/tmp/sysroots/qemux86-64/usr/include/sys/syscall.h:31:0,
11 | from ../strace-4.11/defs.h:55,
12 | from mpers-m32/kernel_dirent.c:32:
13 | /home/andre/build/tmp/sysroots/qemux86-64/usr/include/bits/syscall.h:41:29: fatal error: bits/syscall-32.h: No such file or directory
14
15Make the mpers.m4 tests more robust so that configure correctly
16detects the limitations of the OE toolchain.
17
18Upstream-Status: Pending
19
20Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
21---
22 m4/mpers.m4 | 2 ++
23 1 file changed, 2 insertions(+)
24
25diff --git a/m4/mpers.m4 b/m4/mpers.m4
26index 1fe8a8e..d72c717 100644
27--- a/m4/mpers.m4
28+++ b/m4/mpers.m4
29@@ -53,12 +53,14 @@ case "$arch" in
30 CFLAGS="$CFLAGS CFLAG $IFLAG"
31 AC_CACHE_CHECK([for CFLAG compile support], [st_cv_cc],
32 [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdint.h>
33+ #include <sys/syscall.h>
34 int main(){return 0;}]])],
35 [st_cv_cc=yes],
36 [st_cv_cc=no])])
37 if test $st_cv_cc = yes; then
38 AC_CACHE_CHECK([for CFLAG runtime support], [st_cv_runtime],
39 [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdint.h>
40+ #include <sys/syscall.h>
41 int main(){return 0;}]])],
42 [st_cv_runtime=yes],
43 [st_cv_runtime=no],
44--
451.9.1
46