diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-03-31 20:52:54 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-28 10:44:38 +0100 |
commit | 78cb6b1baa09e22d5640f20abf03fa589ecf6054 (patch) | |
tree | b8ca8430ea2c33e0d3971147d497ce65abbf0063 /meta/recipes-devtools/elfutils/elfutils_0.148.bb | |
parent | dff516e0ebc43aefb64f7cea1a699dad6e4e9da3 (diff) | |
download | poky-78cb6b1baa09e22d5640f20abf03fa589ecf6054.tar.gz |
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>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils_0.148.bb')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.148.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.148.bb b/meta/recipes-devtools/elfutils/elfutils_0.148.bb index a55b98d1e7..df933f61ae 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.148.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.148.bb | |||
@@ -28,8 +28,8 @@ SRC_URI += "\ | |||
28 | file://elf_additions.diff \ | 28 | file://elf_additions.diff \ |
29 | file://elfutils-fsize.patch \ | 29 | file://elfutils-fsize.patch \ |
30 | file://remove-unused.patch \ | 30 | file://remove-unused.patch \ |
31 | file://mempcpy.patch \ | ||
31 | " | 32 | " |
32 | |||
33 | # The buildsystem wants to generate 2 .h files from source using a binary it just built, | 33 | # The buildsystem wants to generate 2 .h files from source using a binary it just built, |
34 | # which can not pass the cross compiling, so let's work around it by adding 2 .h files | 34 | # which can not pass the cross compiling, so let's work around it by adding 2 .h files |
35 | # along with the do_configure_prepend() | 35 | # along with the do_configure_prepend() |
@@ -38,7 +38,6 @@ SRC_URI += "\ | |||
38 | file://i386_dis.h \ | 38 | file://i386_dis.h \ |
39 | file://x86_64_dis.h \ | 39 | file://x86_64_dis.h \ |
40 | " | 40 | " |
41 | |||
42 | inherit autotools | 41 | inherit autotools |
43 | 42 | ||
44 | EXTRA_OECONF = "--program-prefix=eu-" | 43 | EXTRA_OECONF = "--program-prefix=eu-" |
@@ -49,6 +48,9 @@ do_configure_prepend() { | |||
49 | cp ${WORKDIR}/*dis.h ${S}/libcpu | 48 | cp ${WORKDIR}/*dis.h ${S}/libcpu |
50 | } | 49 | } |
51 | 50 | ||
51 | # Only append ldflags for target recipe | ||
52 | TARGET_LDFLAGS_libc-uclibc += "${@['', '-lintl -luargp']['${PN}' == '${BPN}']}" | ||
53 | |||
52 | BBCLASSEXTEND = "native nativesdk" | 54 | BBCLASSEXTEND = "native nativesdk" |
53 | 55 | ||
54 | # Package utilities separately | 56 | # Package utilities separately |