Index: toolchain-funcs.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v retrieving revision 1.46 diff -u -B -r1.46 toolchain-funcs.eclass --- toolchain-funcs.eclass 6 Oct 2005 21:30:23 -0000 1.46 +++ toolchain-funcs.eclass 7 Oct 2005 17:25:48 -0000 @@ -221,3 +221,14 @@ return $([[ ${directive/\{!fno-stack-protector-all:} != ${directive} ]]) } +# Returns ture if the linker is GNU ld +ld-is-gnu() { + case $($(tc-getLD) -v 2>&1