diff options
author | Fabian Groffen <grobian@gentoo.org> | 2012-02-21 13:49:06 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2012-02-21 13:49:06 +0000 |
commit | 4cc372d5a1660b6850fa3d1557cb0aa4b22bab8b (patch) | |
tree | c032e2223bebff4ecc171a296676a5730a566325 /sys-devel/clang/files | |
parent | Stable for amd64, wrt bug #404723 (diff) | |
download | gentoo-2-4cc372d5a1660b6850fa3d1557cb0aa4b22bab8b.tar.gz gentoo-2-4cc372d5a1660b6850fa3d1557cb0aa4b22bab8b.tar.bz2 gentoo-2-4cc372d5a1660b6850fa3d1557cb0aa4b22bab8b.zip |
Add patch to fix version detection of Gentoo's binutils-apple, bug #395013 (forcing for clang-2.8 dep problems that aren't mine)
(Portage version: 2.2.01.20153-prefix/cvs/SunOS i386, RepoMan options: --force)
Diffstat (limited to 'sys-devel/clang/files')
-rw-r--r-- | sys-devel/clang/files/clang-3.0-gentoo-binutils-apple.patch | 28 |
1 files changed, 28 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 000000000000..4164138ab79a --- /dev/null +++ b/sys-devel/clang/files/clang-3.0-gentoo-binutils-apple.patch @@ -0,0 +1,28 @@ +http://llvm.org/bugs/show_bug.cgi?id=8339 +https://bugs.gentoo.org/show_bug.cgi?id=395013 + +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 |