summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-05-28 15:12:55 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-05-28 15:12:55 +0000
commit60aa82b5b60fd78a2bc92b9849eccfc62faeb27a (patch)
tree1be4e926fdbef2ce3e9bbd61f5acf965b9b5a2ce /autoconf
parent0949668398f546d97b05076befb40a9cf6359da0 (diff)
downloadllvm-60aa82b5b60fd78a2bc92b9849eccfc62faeb27a.tar.gz
llvm-60aa82b5b60fd78a2bc92b9849eccfc62faeb27a.tar.bz2
llvm-60aa82b5b60fd78a2bc92b9849eccfc62faeb27a.tar.xz
Don't hard-code ld when extracting host linker version, use ${LD} if
it is set. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/m4/link_options.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/autoconf/m4/link_options.m4 b/autoconf/m4/link_options.m4
index b58d61745f..abf6596f7c 100644
--- a/autoconf/m4/link_options.m4
+++ b/autoconf/m4/link_options.m4
@@ -6,7 +6,7 @@
AC_DEFUN([AC_LINK_GET_VERSION],
[AC_CACHE_CHECK([for linker version],[llvm_cv_link_version],
[
- version_string="$(ld -v 2>&1 | head -1)"
+ version_string="$(${LD:-ld} -v 2>&1 | head -1)"
# Check for ld64.
if (echo "$version_string" | grep -q "ld64"); then