[llvm] r209742 - Don't hard-code ld when extracting host linker version, use ${LD} if
Joerg Sonnenberger
joerg at bec.de
Wed May 28 08:12:55 PDT 2014
Author: joerg
Date: Wed May 28 10:12:55 2014
New Revision: 209742
URL: http://llvm.org/viewvc/llvm-project?rev=209742&view=rev
Log:
Don't hard-code ld when extracting host linker version, use ${LD} if
it is set.
Modified:
llvm/trunk/autoconf/m4/link_options.m4
llvm/trunk/configure
Modified: llvm/trunk/autoconf/m4/link_options.m4
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/m4/link_options.m4?rev=209742&r1=209741&r2=209742&view=diff
==============================================================================
--- llvm/trunk/autoconf/m4/link_options.m4 (original)
+++ llvm/trunk/autoconf/m4/link_options.m4 Wed May 28 10:12:55 2014
@@ -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
Modified: llvm/trunk/configure
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/configure?rev=209742&r1=209741&r2=209742&view=diff
==============================================================================
--- llvm/trunk/configure (original)
+++ llvm/trunk/configure Wed May 28 10:12:55 2014
@@ -7612,7 +7612,7 @@ if test "${llvm_cv_link_version+set}" =
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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
More information about the llvm-commits
mailing list