]> code.ossystems Code Review - openembedded-core.git/commit
valgrind: Fix ptest build with musl
authorKhem Raj <raj.khem@gmail.com>
Mon, 12 Jun 2017 14:59:05 +0000 (07:59 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Jun 2017 09:46:30 +0000 (10:46 +0100)
commit8ab1828f073b5eab606161681a5f260cc0e77bf1
treeadd7a8a8a009015f24654cf743bc6c74f74c6a4f
parent29366ea3ed574848cbf5a6fd9012bf53eddb338f
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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/valgrind/valgrind/0001-sigqueue-Rename-_sifields-to-__si_fields-on-musl.patch [new file with mode: 0644]
meta/recipes-devtools/valgrind/valgrind/0001-str_tester.c-Limit-rawmemchr-test-to-glibc.patch [new file with mode: 0644]
meta/recipes-devtools/valgrind/valgrind/0002-context-APIs-are-not-available-on-musl.patch [new file with mode: 0644]
meta/recipes-devtools/valgrind/valgrind/0003-correct-include-directive-path-for-config.h.patch [new file with mode: 0644]
meta/recipes-devtools/valgrind/valgrind/0004-pth_atfork1.c-Define-error-API-for-musl.patch [new file with mode: 0644]
meta/recipes-devtools/valgrind/valgrind/0005-tc20_verifywrap.c-Fake-__GLIBC_PREREQ-with-musl.patch [new file with mode: 0644]
meta/recipes-devtools/valgrind/valgrind/0006-pth_detached3.c-Dereference-pthread_t-before-adding-.patch [new file with mode: 0644]
meta/recipes-devtools/valgrind/valgrind_3.12.0.bb