summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2012-02-28 02:55:41 +0000
committerCharles Davis <cdavis@mines.edu>2012-02-28 02:55:41 +0000
commit8b37637b7fd8a0af74d68d5f29c12ac285ef0e07 (patch)
treefaf6920294d7ffd648cb5325609be2f54859799b /configure
parent44b6c715ac87505f98066fa3bf6e3e99a26b886a (diff)
downloadllvm-8b37637b7fd8a0af74d68d5f29c12ac285ef0e07.tar.gz
llvm-8b37637b7fd8a0af74d68d5f29c12ac285ef0e07.tar.bz2
llvm-8b37637b7fd8a0af74d68d5f29c12ac285ef0e07.tar.xz
Strip extraneous information, if present, from the linker version string on
Mac OS X. Patch by Fabian Groffen, with a slight tweak by me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 6cd0db8870..848972866e 100755
--- a/configure
+++ b/configure
@@ -7783,7 +7783,7 @@ else
# Check for ld64.
if (echo "$version_string" | grep -q "ld64"); then
- llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
+ llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
else
llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
fi