* [PATCH] binutils: Use target provided zlib
@ 2016-01-31 13:21 Richard Purdie
2016-01-31 15:35 ` Khem Raj
2016-01-31 16:13 ` Phil Blundell
0 siblings, 2 replies; 4+ messages in thread
From: Richard Purdie @ 2016-01-31 13:21 UTC (permalink / raw)
To: openembedded-core
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.
Signed-off-by: Richard Purdie <richard.purdie@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 \
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] binutils: Use target provided zlib
2016-01-31 13:21 [PATCH] binutils: Use target provided zlib Richard Purdie
@ 2016-01-31 15:35 ` Khem Raj
2016-01-31 16:13 ` Phil Blundell
1 sibling, 0 replies; 4+ messages in thread
From: Khem Raj @ 2016-01-31 15:35 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
On Sun, Jan 31, 2016 at 5:21 AM, Richard Purdie
<richard.purdie@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@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 \
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] binutils: Use target provided zlib
2016-01-31 13:21 [PATCH] binutils: Use target provided zlib Richard Purdie
2016-01-31 15:35 ` Khem Raj
@ 2016-01-31 16:13 ` Phil Blundell
2016-01-31 16:28 ` Richard Purdie
1 sibling, 1 reply; 4+ messages in thread
From: Phil Blundell @ 2016-01-31 16:13 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
On Sun, 2016-01-31 at 13:21 +0000, Richard Purdie wrote:
> When using -fpic (security related cflags),
Do you mean -fpie?
p.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] binutils: Use target provided zlib
2016-01-31 16:13 ` Phil Blundell
@ 2016-01-31 16:28 ` Richard Purdie
0 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2016-01-31 16:28 UTC (permalink / raw)
To: Phil Blundell; +Cc: openembedded-core
On Sun, 2016-01-31 at 16:13 +0000, Phil Blundell wrote:
> On Sun, 2016-01-31 at 13:21 +0000, Richard Purdie wrote:
> > When using -fpic (security related cflags),
>
> Do you mean -fpie?
I do, thanks :)
I'll fix the typos in -next.
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-01-31 16:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-31 13:21 [PATCH] binutils: Use target provided zlib Richard Purdie
2016-01-31 15:35 ` Khem Raj
2016-01-31 16:13 ` Phil Blundell
2016-01-31 16:28 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox