summaryrefslogtreecommitdiff
path: root/util/xcompile
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2013-03-22 19:35:56 -0500
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-03-23 19:32:44 +0100
commit73982c3c685395b74b611cde7f13f0145b8c0a4d (patch)
tree94ed17f3b4da604cdcf682f130958b43a2f65672 /util/xcompile
parenta438ea838e16ac4f3c2e7250ed2530671de4747d (diff)
downloadcoreboot-73982c3c685395b74b611cde7f13f0145b8c0a4d.tar.xz
xcompile: honor LINKER_SUFFIX variable
In commit e820e5cb3aed810fa9ba6047ce9b8bf352335e32 titled "Make xcompile support multiple architectures" the LINKER_SUFFIX variable was introduced to bypass gold if the bfd linker was available. However, the LINKER_SUFFIX wasn't honored when the compiler evironment variables were set. Fix the original intention. Change-Id: I608f1e0cc3d0bea3ba1e51b167d88c66d266bceb Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/2879 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/xcompile')
-rw-r--r--util/xcompile/xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index fa9f44238b..ff12217007 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -118,7 +118,7 @@ report_arch_toolchain() {
# elf${TWIDTH}-${TBFDARCH} toolchain (${GCCPREFIX}gcc)
CC_${TARCH}:=${GCCPREFIX}gcc ${CFLAGS}
AS_${TARCH}:=${GCCPREFIX}as ${ASFLAGS}
-LD_${TARCH}:=${GCCPREFIX}ld ${LDFLAGS}
+LD_${TARCH}:=${GCCPREFIX}ld${LINKER_SUFFIX} ${LDFLAGS}
NM_${TARCH}:=${GCCPREFIX}nm
OBJCOPY_${TARCH}:=${GCCPREFIX}objcopy
OBJDUMP_${TARCH}:=${GCCPREFIX}objdump