mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
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
6d6f0eca22
commit
456e1f6a69
@ -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
|
||||
|
2
configure
vendored
2
configure
vendored
@ -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
Block a user