crosstool-ng/scripts/build/binutils/binutils-ld.in
Yann E. MORIN" 2841bb7a35 binutils/binutils: add wrapper to gold and ld
When both gold and ld are installed, add a wrapper that calls
to either gold or ld.

In case the wrapper is installed, we also need to symlink ld.bfd
and ld.gold for the core_cc steps.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-12-29 18:19:40 +01:00

12 lines
154 B
Bash

#!/bin/sh
call_to=@@DEFAULT_LD@@
case "${CTNG_LD_IS}" in
bfd) call_to=bfd;;
gold) call_to=gold;;
esac
exec "${0}.${call_to}" "$@"
exit $?