forked from OSchip/llvm-project
Don't hard-code ld when extracting host linker version, use ${LD} if
it is set. llvm-svn: 209742
This commit is contained in:
parent
6269913bdd
commit
e6aafbb242
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue