mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 18:49:33 +02:00
elfutils_0.148.bb: Fix compilation issues on uclibc
* Add -luargp and -lintl to linker flags * __mempcpy is not there on uclibc so define it to mempcpy (From OE-Core rev: a991226ff160c20fd7a03fe3b53b36389d3ff1f4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
23
meta/recipes-devtools/elfutils/elfutils-0.148/mempcpy.patch
Normal file
23
meta/recipes-devtools/elfutils/elfutils-0.148/mempcpy.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
uclibc does not export __mempcpy like glibc so we alias it here.
|
||||
This patch may make sense for upstream but elfutils uses more
|
||||
glibc specific features like obstack_printf which are missing in
|
||||
uclibc they need to be fixed along to make it work all the way
|
||||
|
||||
Upstream-status: Inappropriate[Elfutils uses more glibc specific features]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
Index: elfutils-0.148/libelf/elf_begin.c
|
||||
===================================================================
|
||||
--- elfutils-0.148.orig/libelf/elf_begin.c
|
||||
+++ elfutils-0.148/libelf/elf_begin.c
|
||||
@@ -68,6 +68,9 @@
|
||||
#include "libelfP.h"
|
||||
#include "common.h"
|
||||
|
||||
+#ifdef __UCLIBC__
|
||||
+#define __mempcpy mempcpy
|
||||
+#endif
|
||||
|
||||
/* Create descriptor for archive in memory. */
|
||||
static inline Elf *
|
||||
Reference in New Issue
Block a user