blob: 8ab4ab77acaca33cf1b22fef71f3570779843263 [file] [log] [blame]
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# $Header:
# @ECLASS: binutils-funcs.eclass
# @MAINTAINER:
# Raymes Khoury <raymes@google.com>
# @DESCRIPTION:
# Functions to get the paths to binutils installations for gold and for GNU ld.
inherit toolchain-funcs
get_binutils_path_ld() {
ld_path=$(readlink -f $(which $(tc-getLD)))
binutils_dir=$(dirname ${ld_path})
echo ${binutils_dir}
}
get_binutils_path_gold() {
echo $(get_binutils_path_ld)-gold
}