1
0
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:
Joerg Sonnenberger 2014-05-28 15:12:55 +00:00
parent 6d6f0eca22
commit 456e1f6a69
2 changed files with 2 additions and 2 deletions

View File

@ -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
View File

@ -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