diff options
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils_0.148.bb')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.148.bb | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.148.bb b/meta/recipes-devtools/elfutils/elfutils_0.148.bb index df933f61ae..115ff9bde6 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.148.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.148.bb | |||
@@ -30,6 +30,9 @@ SRC_URI += "\ | |||
30 | file://remove-unused.patch \ | 30 | file://remove-unused.patch \ |
31 | file://mempcpy.patch \ | 31 | file://mempcpy.patch \ |
32 | " | 32 | " |
33 | # Only apply when building uclibc based target recipe | ||
34 | SRC_URI_append_libc-uclibc = " ${@['', 'file://uclibc-support.patch']['${PN}' == '${BPN}']}" | ||
35 | |||
33 | # The buildsystem wants to generate 2 .h files from source using a binary it just built, | 36 | # 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 | 37 | # 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() | 38 | # along with the do_configure_prepend() |
@@ -38,9 +41,10 @@ SRC_URI += "\ | |||
38 | file://i386_dis.h \ | 41 | file://i386_dis.h \ |
39 | file://x86_64_dis.h \ | 42 | file://x86_64_dis.h \ |
40 | " | 43 | " |
41 | inherit autotools | 44 | inherit autotools gettext |
42 | 45 | ||
43 | EXTRA_OECONF = "--program-prefix=eu-" | 46 | EXTRA_OECONF = "--program-prefix=eu-" |
47 | EXTRA_OECONF_append_libc-uclibc = " ${@['', '--enable-uclibc']['${PN}' == '${BPN}']}" | ||
44 | 48 | ||
45 | do_configure_prepend() { | 49 | do_configure_prepend() { |
46 | sed -i 's:./i386_gendis:echo\ \#:g' ${S}/libcpu/Makefile.am | 50 | sed -i 's:./i386_gendis:echo\ \#:g' ${S}/libcpu/Makefile.am |
@@ -48,8 +52,13 @@ do_configure_prepend() { | |||
48 | cp ${WORKDIR}/*dis.h ${S}/libcpu | 52 | cp ${WORKDIR}/*dis.h ${S}/libcpu |
49 | } | 53 | } |
50 | 54 | ||
51 | # Only append ldflags for target recipe | 55 | # we can not build complete elfutils when using uclibc |
52 | TARGET_LDFLAGS_libc-uclibc += "${@['', '-lintl -luargp']['${PN}' == '${BPN}']}" | 56 | # but some recipes e.g. gcc 4.5 depends on libelf so we |
57 | # build only libelf for uclibc case | ||
58 | |||
59 | EXTRA_OEMAKE_libc-uclibc = "-C libelf" | ||
60 | EXTRA_OEMAKE_virtclass-native = "" | ||
61 | EXTRA_OEMAKE_virtclass-nativesdk = "" | ||
53 | 62 | ||
54 | BBCLASSEXTEND = "native nativesdk" | 63 | BBCLASSEXTEND = "native nativesdk" |
55 | 64 | ||