mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 09:32:11 +02:00
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>
32 lines
838 B
Diff
32 lines
838 B
Diff
From 64ad2744acfb4fa40b1c114633a053f87125a203 Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Sat, 10 Jun 2017 00:46:39 -0700
|
|
Subject: [PATCH 1/6] sigqueue: Rename _sifields to __si_fields on musl
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
---
|
|
memcheck/tests/linux/sigqueue.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/memcheck/tests/linux/sigqueue.c b/memcheck/tests/linux/sigqueue.c
|
|
index d18bd72..acb7cba 100644
|
|
--- a/memcheck/tests/linux/sigqueue.c
|
|
+++ b/memcheck/tests/linux/sigqueue.c
|
|
@@ -8,6 +8,11 @@
|
|
#include <syscall.h>
|
|
#include <unistd.h>
|
|
|
|
+/* musl libc defines siginfo_t __si_fields instead of _sifields */
|
|
+#if defined(__linux__) && !defined(__GLIBC__)
|
|
+#define _sifields __si_fields
|
|
+#endif
|
|
+
|
|
int main(int argc, char **argv)
|
|
{
|
|
siginfo_t *si;
|
|
--
|
|
2.13.1
|
|
|