[OE-core] [PATCH RFC] binutils: allow distro to select gold as default cross-linker

Koen Kooi koen at dominion.thruhere.net
Tue Jun 14 15:38:45 UTC 2011


Op 14 jun 2011, om 17:30 heeft Phil Blundell het volgende geschreven:

> This is not particularly pretty but I couldn't think of any obviously
> better way of doing it.  Any suggestions?
> 
> Signed-off-by: Phil Blundell <philb at gnu.org>
> ---
> meta/recipes-devtools/binutils/binutils-cross.inc |    3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/recipes-devtools/binutils/binutils-cross.inc b/meta/recipes-devtools/binutils/binutils-cross.inc
> index 4b90972..5a41970 100644
> --- a/meta/recipes-devtools/binutils/binutils-cross.inc
> +++ b/meta/recipes-devtools/binutils/binutils-cross.inc
> @@ -5,7 +5,8 @@ EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \
>                 --program-prefix=${TARGET_PREFIX} \
>                 --disable-install-libbfd \
>                 --disable-werror \
> -                --enable-poison-system-directories"
> +                --enable-poison-system-directories \
> +		${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default', '', d)}"

Out of curiousity, how well does gold work nowadays? Last I remember hearing of it was in its x86-only days.

regards,

Koen



More information about the Openembedded-core mailing list