Skip to content

Commit

Permalink
Don't hard-code ld when extracting host linker version, use ${LD} if
Browse files Browse the repository at this point in the history
it is set.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209742 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
jsonn committed May 28, 2014
1 parent 0949668 commit 60aa82b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoconf/m4/link_options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -7612,7 +7612,7 @@ if test "${llvm_cv_link_version+set}" = set; then
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
Expand Down

0 comments on commit 60aa82b

Please sign in to comment.