diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-06-12 07:59:05 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-13 10:46:34 +0100 |
commit | 98a967d10d11dd3d086604c822385a71b21031f9 (patch) | |
tree | 2f81f250edf796c854d1ed7de8a967d58ed86410 /meta/recipes-devtools/valgrind/valgrind/0001-str_tester.c-Limit-rawmemchr-test-to-glibc.patch | |
parent | 93ddbfd17ddcfb94d3dda9d68dab1e58ea618860 (diff) | |
download | poky-98a967d10d11dd3d086604c822385a71b21031f9.tar.gz |
valgrind: Fix ptest build with musl
musl unearthed a problem when building out of tree, config.h was being
used from $(srcdir) instead of generated config.h in $(builddir)
this assumed functions e.g. mallinfo() and more which are not in musl
as a result tests broke.
Also add fixes to build remaining tests when building on musl
pass -fno-pie as it cant use PIE especially in ptests/x86_64
(From OE-Core rev: 8ab1828f073b5eab606161681a5f260cc0e77bf1)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind/0001-str_tester.c-Limit-rawmemchr-test-to-glibc.patch')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind/0001-str_tester.c-Limit-rawmemchr-test-to-glibc.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/0001-str_tester.c-Limit-rawmemchr-test-to-glibc.patch b/meta/recipes-devtools/valgrind/valgrind/0001-str_tester.c-Limit-rawmemchr-test-to-glibc.patch new file mode 100644 index 0000000000..185b8f9e60 --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/0001-str_tester.c-Limit-rawmemchr-test-to-glibc.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From de692e359801a1f0488c76267e4f904dd2efe754 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 10 Jun 2017 00:39:07 -0700 | ||
4 | Subject: [PATCH] str_tester.c: Limit rawmemchr() test to glibc | ||
5 | |||
6 | rawmemchr() is a GNU extention therefore mark it so | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | Upstream-Status: Pending | ||
11 | |||
12 | memcheck/tests/str_tester.c | 4 ++-- | ||
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/memcheck/tests/str_tester.c b/memcheck/tests/str_tester.c | ||
16 | index 9f7790a..47e4b4a 100644 | ||
17 | --- a/memcheck/tests/str_tester.c | ||
18 | +++ b/memcheck/tests/str_tester.c | ||
19 | @@ -504,7 +504,7 @@ test_strchrnul (void) | ||
20 | #endif | ||
21 | |||
22 | // DDD: better done by testing for the function. | ||
23 | -#if !defined(__APPLE__) && !defined(__sun) | ||
24 | +#if !defined(__APPLE__) && !defined(__sun) && defined(__GLIBC__) | ||
25 | static void | ||
26 | test_rawmemchr (void) | ||
27 | { | ||
28 | @@ -1442,7 +1442,7 @@ main (void) | ||
29 | test_strchrnul (); | ||
30 | # endif | ||
31 | |||
32 | -# if !defined(__APPLE__) && !defined(__sun) | ||
33 | +# if !defined(__APPLE__) && !defined(__sun) && defined(__GLIBC__) | ||
34 | /* rawmemchr. */ | ||
35 | test_rawmemchr (); | ||
36 | # endif | ||
37 | -- | ||
38 | 2.13.1 | ||
39 | |||