# HG changeset patch # User "Yann E. MORIN" # Date 1301959078 -7200 # Node ID aee55f7b7ea7244481eb2db49739ecc11d389d5c # Parent e3f16cdbbf5e64ff3cf8f6b0e6eca57ad9e27268 binutils/binutils: hide gold option if no support for current architecture The gold linker does currently support only a limited set of architectures: - x86 (32- and 64-bit) - ARM Hide the gold option for other architectures. Signed-off-by: "Yann E. MORIN" (transplanted from 148e80538623dd4fdb7895546138eabaf5712518) diff -r e3f16cdbbf5e -r aee55f7b7ea7 config/binutils/binutils.in --- a/config/binutils/binutils.in Sun Mar 27 00:09:42 2011 +0100 +++ b/config/binutils/binutils.in Tue Apr 05 01:17:58 2011 +0200 @@ -67,10 +67,20 @@ config BINUTILS_HAS_GOLD bool +config BINUTILS_GOLD_SUPPORTS_ARCH + bool + config BINUTILS_HAS_PLUGINS bool -if BINUTILS_HAS_GOLD +# Only these architectures have support in gold +config ARCH_arm + select BINUTILS_GOLD_SUPPORTS_ARCH + +config ARCH_x86 + select BINUTILS_GOLD_SUPPORTS_ARCH + +if BINUTILS_HAS_GOLD && BINUTILS_GOLD_SUPPORTS_ARCH choice bool