Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 350476 Details for
Bug 470884
dev-libs/elfutils: build fails on uclibc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fall back on mempcpy if __mempcpy is not available
0001-libelf-elf_begin.c-fall-back-on-mempcpy-if-no-__memp.patch (text/plain), 1.37 KB, created by
Anthony Basile
on 2013-06-09 01:27:39 UTC
(
hide
)
Description:
Fall back on mempcpy if __mempcpy is not available
Filename:
MIME Type:
Creator:
Anthony Basile
Created:
2013-06-09 01:27:39 UTC
Size:
1.37 KB
patch
obsolete
>From 72cfbe5bbedfa00c94050221e09b49fd27268f75 Mon Sep 17 00:00:00 2001 >From: "Anthony G. Basile" <blueness@gentoo.org> >Date: Sat, 8 Jun 2013 18:43:11 -0400 >Subject: [PATCH 1/6] libelf/elf_begin.c: fall back on mempcpy if no __mempcpy > is avialable > >uClibc and possibly other standard C libraries provide mempcpy but not >__mempcpy. We check to see if __mempcpy is avialable, and if it is >not, we fall back on mempcpy. > >Signed-off-by: Anthony G. Basile <blueness@gentoo.org> >--- > configure.ac | 3 +++ > libelf/elf_begin.c | 5 +++++ > 2 files changed, 8 insertions(+), 0 deletions(-) > >diff --git a/configure.ac b/configure.ac >index d7c75ce..2a6b858 100644 >--- a/configure.ac >+++ b/configure.ac >@@ -233,6 +233,9 @@ AC_CHECK_LIB([stdc++], [__cxa_demangle], [dnl > AC_DEFINE([USE_DEMANGLE], [1], [Defined if demangling is enabled])]) > AM_CONDITIONAL(DEMANGLE, test "$ac_cv_lib_stdcpp___cxa_demangle" = yes) > >+dnl Check for __mempcpy >+AC_CHECK_FUNCS_ONCE([__mempcpy]) >+ > dnl The directories with content. > > dnl Documentation. >diff --git a/libelf/elf_begin.c b/libelf/elf_begin.c >index b9d5cea..32594ba 100644 >--- a/libelf/elf_begin.c >+++ b/libelf/elf_begin.c >@@ -31,6 +31,11 @@ > # include <config.h> > #endif > >+/* If we don't have __mempcpy fall back on mempcpy */ >+#ifndef HAVE___MEMPCPY >+# define __mempcpy mempcpy >+#endif >+ > #include <assert.h> > #include <ctype.h> > #include <errno.h> >-- >1.7.8.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 470884
:
348828
|
348830
|
348832
|
348908
|
349604
|
349608
| 350476 |
350478
|
350480
|
350482
|
350484
|
350486
|
376194
|
376196
|
376198
|
459426
|
459428
|
459430
|
459432
|
459434