eclass/tests/toolchain-funcs.sh: fix gold tests, bug #700812
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 13 Dec 2019 22:22:11 +0000 (22:22 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 13 Dec 2019 22:37:12 +0000 (22:37 +0000)
commit063d79790a2c0ee4542552f76334f511aaced319
treef95249696409aa10f96d621e3b148d6098723f2c
parente4bcdbedecfd76ccf91031f72355ad71d415b0ca
eclass/tests/toolchain-funcs.sh: fix gold tests, bug #700812

As written tests assumed that $CC always called ld.bfd as a linker.

The assumption fails when default linker is not ld.bfd,
(for example sys-devel/binutils[default-gold]).

The change uses LDFLAGS=-fuse-ld=bfd explicitly.

Fixes the following tests:
 * Testing tc-ld-is-gold (bfd selected) ...       [ !! ]
 * Testing tc-ld-disable-gold (bfd selected) ...  [ !! ]

Reported-by: Michał Górny
Closes: https://bugs.gentoo.org/700812
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/tests/toolchain-funcs.sh