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/0005-tc20_verifywrap.c-Fake-__GLIBC_PREREQ-with-musl.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/0005-tc20_verifywrap.c-Fake-__GLIBC_PREREQ-with-musl.patch')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind/0005-tc20_verifywrap.c-Fake-__GLIBC_PREREQ-with-musl.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/0005-tc20_verifywrap.c-Fake-__GLIBC_PREREQ-with-musl.patch b/meta/recipes-devtools/valgrind/valgrind/0005-tc20_verifywrap.c-Fake-__GLIBC_PREREQ-with-musl.patch new file mode 100644 index 0000000000..6176640e42 --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/0005-tc20_verifywrap.c-Fake-__GLIBC_PREREQ-with-musl.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From b4b9f072c22f96844e02cb9d68f7ff2408680817 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 10 Jun 2017 01:07:59 -0700 | ||
4 | Subject: [PATCH 5/6] tc20_verifywrap.c: Fake __GLIBC_PREREQ with musl | ||
5 | |||
6 | similar to sun | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | helgrind/tests/tc20_verifywrap.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/helgrind/tests/tc20_verifywrap.c b/helgrind/tests/tc20_verifywrap.c | ||
16 | index c110000..a311a49 100644 | ||
17 | --- a/helgrind/tests/tc20_verifywrap.c | ||
18 | +++ b/helgrind/tests/tc20_verifywrap.c | ||
19 | @@ -20,7 +20,7 @@ | ||
20 | |||
21 | #if !defined(__APPLE__) | ||
22 | |||
23 | -#if defined(__sun__) | ||
24 | +#if defined(__sun__) || (defined(__linux__) && !defined(__GLIBC__)) | ||
25 | /* Fake __GLIBC_PREREQ on Solaris. Pretend glibc >= 2.4. */ | ||
26 | # define __GLIBC_PREREQ | ||
27 | #else | ||
28 | -- | ||
29 | 2.13.1 | ||
30 | |||