* [PATCH] binutils: Allow gold to build even when not the default
@ 2015-04-07 14:51 Richard Purdie
2015-04-07 19:33 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2015-04-07 14:51 UTC (permalink / raw)
To: openembedded-core
It can be useful to have gold available for testing even when its not the
default, therefore build gold by default in all configurations.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index afb582a..3c65efc 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -73,7 +73,7 @@ EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
LDGOLD_class-native = ""
LDGOLD_class-crosssdk = ""
-LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '', d)}"
+LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default', d)}"
# This is necessary due to a bug in the binutils Makefiles
# EXTRA_OEMAKE = "configure-build-libiberty all"
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] binutils: Allow gold to build even when not the default
2015-04-07 14:51 [PATCH] binutils: Allow gold to build even when not the default Richard Purdie
@ 2015-04-07 19:33 ` Khem Raj
2015-04-07 21:56 ` Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2015-04-07 19:33 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
> On Apr 7, 2015, at 7:51 AM, Richard Purdie <richard.purdie@linuxfoundation.org> wrote:
>
> It can be useful to have gold available for testing even when its not the
> default, therefore build gold by default in all configurations.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
> diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
> index afb582a..3c65efc 100644
> --- a/meta/recipes-devtools/binutils/binutils.inc
> +++ b/meta/recipes-devtools/binutils/binutils.inc
> @@ -73,7 +73,7 @@ EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
>
> LDGOLD_class-native = ""
> LDGOLD_class-crosssdk = ""
> -LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '', d)}"
> +LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default', d)}”
>
may be enable-gold could be done unconditionally ? and then —enable-gold|ld=default controlled with ld-is-gold ?
ld-is-gold anyway meant that default linker is gold, it did not mean to just build gold, so we are not changing semantics
> # This is necessary due to a bug in the binutils Makefiles
> # EXTRA_OEMAKE = "configure-build-libiberty all"
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] binutils: Allow gold to build even when not the default
2015-04-07 19:33 ` Khem Raj
@ 2015-04-07 21:56 ` Richard Purdie
2015-04-07 22:02 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2015-04-07 21:56 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core
On Tue, 2015-04-07 at 12:33 -0700, Khem Raj wrote:
> > On Apr 7, 2015, at 7:51 AM, Richard Purdie <richard.purdie@linuxfoundation.org> wrote:
> >
> > It can be useful to have gold available for testing even when its not the
> > default, therefore build gold by default in all configurations.
> >
> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> >
> > diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
> > index afb582a..3c65efc 100644
> > --- a/meta/recipes-devtools/binutils/binutils.inc
> > +++ b/meta/recipes-devtools/binutils/binutils.inc
> > @@ -73,7 +73,7 @@ EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
> >
> > LDGOLD_class-native = ""
> > LDGOLD_class-crosssdk = ""
> > -LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '', d)}"
> > +LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default', d)}”
> >
>
> may be enable-gold could be done unconditionally ? and then —enable-gold|ld=default controlled with ld-is-gold ?
> ld-is-gold anyway meant that default linker is gold, it did not mean
> to just build gold, so we are not changing semantics
The above effectively does mean we're always building gold, it just
controls whether ld is gold or not as before?
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] binutils: Allow gold to build even when not the default
2015-04-07 21:56 ` Richard Purdie
@ 2015-04-07 22:02 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2015-04-07 22:02 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
> On Apr 7, 2015, at 2:56 PM, Richard Purdie <richard.purdie@linuxfoundation.org> wrote:
>
> On Tue, 2015-04-07 at 12:33 -0700, Khem Raj wrote:
>>> On Apr 7, 2015, at 7:51 AM, Richard Purdie <richard.purdie@linuxfoundation.org> wrote:
>>>
>>> It can be useful to have gold available for testing even when its not the
>>> default, therefore build gold by default in all configurations.
>>>
>>> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>>>
>>> diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
>>> index afb582a..3c65efc 100644
>>> --- a/meta/recipes-devtools/binutils/binutils.inc
>>> +++ b/meta/recipes-devtools/binutils/binutils.inc
>>> @@ -73,7 +73,7 @@ EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
>>>
>>> LDGOLD_class-native = ""
>>> LDGOLD_class-crosssdk = ""
>>> -LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '', d)}"
>>> +LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default', d)}”
>>>
>>
>> may be enable-gold could be done unconditionally ? and then —enable-gold|ld=default controlled with ld-is-gold ?
>> ld-is-gold anyway meant that default linker is gold, it did not mean
>> to just build gold, so we are not changing semantics
>
> The above effectively does mean we're always building gold, it just
> controls whether ld is gold or not as before?
>
yes but only for cross toolchain. I was suggesting was to incorporate —enable-gold generally for all binutils variants
while keeping ld.bfd as default.
> Cheers,
>
> Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-07 22:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-07 14:51 [PATCH] binutils: Allow gold to build even when not the default Richard Purdie
2015-04-07 19:33 ` Khem Raj
2015-04-07 21:56 ` Richard Purdie
2015-04-07 22:02 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.