diff options
Diffstat (limited to 'sys-devel/clang/files/clang-3.0-gentoo-binutils-apple.patch')
-rw-r--r-- | sys-devel/clang/files/clang-3.0-gentoo-binutils-apple.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-devel/clang/files/clang-3.0-gentoo-binutils-apple.patch b/sys-devel/clang/files/clang-3.0-gentoo-binutils-apple.patch new file mode 100644 index 0000000..944ccaf --- /dev/null +++ b/sys-devel/clang/files/clang-3.0-gentoo-binutils-apple.patch @@ -0,0 +1,29 @@ +http://llvm.org/bugs/show_bug.cgi?id=8339 +https://bugs.gentoo.org/show_bug.cgi?id=395013 +http://llvm.org/viewvc/llvm-project?view=rev&revision=151612 + +Tweak version detection bit to cope with Gentoo's slightly different +output for ld -v. + +--- autoconf/m4/link_options.m4 ++++ autoconf/m4/link_options.m4 +@@ -10,7 +10,7 @@ + + # 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-\([^ ]*\)\( (.*)\)\?#\1#") + else + llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") + fi +--- configure ++++ configure +@@ -7528,7 +7528,7 @@ + + # 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-\([^ ]*\)\( (.*)\)\?#\1#") + else + llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") + fi |