[OE-core] [PATCH] binutils: Use target provided zlib

Khem Raj raj.khem at gmail.com
Sun Jan 31 15:35:16 UTC 2016


On Sun, Jan 31, 2016 at 5:21 AM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> When using -fpic (security related cflags), qemux6-64 builds would
> fail due to linker symbol errors. This was due to the internal zlib
> that binutils was using.
>
> Add the switch to tell it to use the target system zlib which is
> already in DEPENDS. That zlib is already compiled with the correct
> flags.

this looks good to me.

>
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
>
> diff --git a/meta/recipes-devtools/binutils/binutils_2.26.bb b/meta/recipes-devtools/binutils/binutils_2.26.bb
> index 6f42671..b70ffbf 100644
> --- a/meta/recipes-devtools/binutils/binutils_2.26.bb
> +++ b/meta/recipes-devtools/binutils/binutils_2.26.bb
> @@ -7,6 +7,7 @@ EXTRA_OECONF += "--with-sysroot=/ \
>                  --enable-install-libbfd \
>                  --enable-install-libiberty \
>                  --enable-shared \
> +                --with-system-zlib \
>                  "
>
>  EXTRA_OECONF_class-native = "--enable-targets=all \
>
>



More information about the Openembedded-core mailing list