diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-12-29 17:19:40 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-12-29 17:19:40 (GMT) |
commit | 2841bb7a35cbdaa7ed68d078880f199319b083c8 (patch) | |
tree | 95ac7160114baa328b8188129890b80d2999273d /scripts/build/binutils/binutils-ld.in | |
parent | 8a952d18e0f650829b60be72f051cadf0fc9e247 (diff) |
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>
Diffstat (limited to 'scripts/build/binutils/binutils-ld.in')
-rw-r--r-- | scripts/build/binutils/binutils-ld.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/build/binutils/binutils-ld.in b/scripts/build/binutils/binutils-ld.in new file mode 100644 index 0000000..30f4591 --- /dev/null +++ b/scripts/build/binutils/binutils-ld.in @@ -0,0 +1,11 @@ +#!/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 $? |