scripts/build/binutils/binutils-ld.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Dec 29 17:58:35 2010 +0100 (2010-12-29)
changeset 2248 4ea8e6d381f0
permissions -rw-r--r--
cc/gcc: build lto-plugin if binutils' gold is built

To properly enable LTO with gold, gcc has to install a plugin that gold
uses to handle the LTO information.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 #!/bin/sh
     2 
     3 call_to=@@DEFAULT_LD@@
     4 
     5 case "${CTNG_LD_IS}" in
     6     bfd)    call_to=bfd;;
     7     gold)   call_to=gold;;
     8 esac
     9 
    10 exec "${0}.${call_to}" "$@"
    11 exit $?