gold vs. CT_STATIC_TOOLCHAIN
Johannes Stezenbach
js@sig21.net
Tue Dec 13 17:23:00 GMT 2011
Hi,
On Fri, Dec 02, 2011 at 02:24:50PM +0100, Johannes Stezenbach wrote:
> with CT_STATIC_TOOLCHAIN ./scripts/build/binutils/binutils.sh
> adds -all-static to LDFLAGS. However, -all-static is a libtool
> option and gold is not libtoolized. Maybe cg-ng should just
> disable gold when CT_STATIC_TOOLCHAIN is selected?
>
> Untested: (the 2nd and 3rd hunk are actually a seperate bugfix)
any comments on this? I could send clean, tested patches but I won't
spend my time if no one is interested.
Johannes
> diff -r cf509170838f config/binutils/binutils.in
> --- a/config/binutils/binutils.in Wed Nov 30 12:07:59 2011 +0100
> +++ b/config/binutils/binutils.in Fri Dec 02 14:21:20 2011 +0100
> @@ -101,6 +101,9 @@
> config BINUTILS_FORCE_LD_BFD
> bool
>
> +config STATIC_TOOLCHAIN
> + select BINUTILS_FORCE_LD_BFD
> +
> choice
> bool
> prompt "Linkers to enable"
> @@ -130,6 +133,7 @@
> prompt "ld, gold"
> depends on BINUTILS_HAS_GOLD
> depends on BINUTILS_GOLD_SUPPORTS_ARCH
> + depends on ! BINUTILS_FORCE_LD_BFD
> depends on EXPERIMENTAL
> select BINUTILS_GOLD_INSTALLED
> select BINUTILS_LINKER_BOTH
> @@ -144,6 +148,7 @@
> prompt "gold, ld"
> depends on BINUTILS_HAS_GOLD
> depends on BINUTILS_GOLD_SUPPORTS_ARCH
> + depends on ! BINUTILS_FORCE_LD_BFD
> depends on EXPERIMENTAL
> select BINUTILS_GOLD_INSTALLED
> select BINUTILS_LINKER_BOTH
>
>
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list