summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-01-06 05:22:50 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-01-07 21:43:06 +0100
commita64632e44728450e6fa814ce95fbb67161c8971a (patch)
treee5f3c4bb4babdcddc9412f9c7f01c298b01cf23d /package
parent8e6c06fb11684ab8aa5454338024040dae95e57e (diff)
downloadbuildroot-novena-a64632e44728450e6fa814ce95fbb67161c8971a.tar.gz
buildroot-novena-a64632e44728450e6fa814ce95fbb67161c8971a.zip
elfutils: towards uClibc support: solve memcpy problem
elfutils uses some strange internal alias of memcpy in glibc, so workaround this when building with uClibc. Heavily based from work done by Stefan Fröberg, but with many further modifications by Thomas Petazzoni. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/elfutils/elfutils-03-memcpy-def.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/elfutils/elfutils-03-memcpy-def.patch b/package/elfutils/elfutils-03-memcpy-def.patch
new file mode 100644
index 000000000..eb50cf654
--- /dev/null
+++ b/package/elfutils/elfutils-03-memcpy-def.patch
@@ -0,0 +1,24 @@
+Provide a compatibility alias __memcpy
+
+For some reason, libelf uses the internal glibc alias __memcpy, which
+doesn't exist in uClibc. Add a manual alias so that the build can
+proceed with uClibc.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/libelf/libelf.h
+===================================================================
+--- a/libelf/libelf.h
++++ b/libelf/libelf.h
+@@ -34,6 +34,11 @@
+ /* Get the ELF types. */
+ #include <elf.h>
+
++#ifndef _LIBC
++#ifndef __mempcpy
++#define __mempcpy mempcpy
++#endif
++#endif
+
+ /* Known translation types. */
+ typedef enum