llvm.org GIT mirror llvm / 60aa82b
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 Joerg Sonnenberger 5 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
55 AC_DEFUN([AC_LINK_GET_VERSION],
66 [AC_CACHE_CHECK([for linker version],[llvm_cv_link_version],
77 [
8 version_string="$(ld -v 2>&1 | head -1)"
8 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
99
1010 # Check for ld64.
1111 if (echo "$version_string" | grep -q "ld64"); then
76117611 echo $ECHO_N "(cached) $ECHO_C" >&6
76127612 else
76137613
7614 version_string="$(ld -v 2>&1 | head -1)"
7614 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
76157615
76167616 # Check for ld64.
76177617 if (echo "$version_string" | grep -q "ld64"); then