summaryrefslogtreecommitdiffstats
path: root/abs/core/llvm/clang-pure64.patch
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2011-07-21 07:46:40 (GMT)
committerCecil <knoppmyth@gmail.com>2011-07-21 07:46:40 (GMT)
commit6199ba3a18c3b76e4962206722bdd4fe7d3096e0 (patch)
treebb5a0082c8b4de8e096b54b5b4c421b3e97b7dd4 /abs/core/llvm/clang-pure64.patch
parent444454770de1e247155a3557fab141be24c3a03b (diff)
parent56ff12b7fb2841e49431084a5b85d95fe8c9de2b (diff)
downloadlinhes_pkgbuild-6199ba3a18c3b76e4962206722bdd4fe7d3096e0.zip
linhes_pkgbuild-6199ba3a18c3b76e4962206722bdd4fe7d3096e0.tar.gz
linhes_pkgbuild-6199ba3a18c3b76e4962206722bdd4fe7d3096e0.tar.bz2
Merge branch 'testing' of ssh://cesman@linhes.org/mount/repository/linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/llvm/clang-pure64.patch')
-rw-r--r--abs/core/llvm/clang-pure64.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/core/llvm/clang-pure64.patch b/abs/core/llvm/clang-pure64.patch
new file mode 100644
index 0000000..da61785
--- /dev/null
+++ b/abs/core/llvm/clang-pure64.patch
@@ -0,0 +1,38 @@
+Index: lib/Driver/Tools.cpp
+===================================================================
+--- lib/Driver/Tools.cpp (revision 123373)
++++ lib/Driver/Tools.cpp (working copy)
+@@ -3306,7 +3306,7 @@
+ else if (ToolChain.getArch() == llvm::Triple::arm)
+ CmdArgs.push_back("/lib/ld-linux.so.3");
+ else
+- CmdArgs.push_back("/lib64/ld-linux-x86-64.so.2");
++ CmdArgs.push_back("/lib/ld-linux-x86-64.so.2");
+ }
+
+ CmdArgs.push_back("-o");
+Index: lib/Driver/ToolChains.cpp
+===================================================================
+--- lib/Driver/ToolChains.cpp (revision 123373)
++++ lib/Driver/ToolChains.cpp (working copy)
+@@ -1317,18 +1317,10 @@
+ if (Arch == llvm::Triple::x86)
+ Suffix64 = "/64";
+
+- std::string Lib32 = "lib";
+-
+- bool Exists;
+- if (!llvm::sys::fs::exists("/lib32", Exists) && Exists)
+- Lib32 = "lib32";
+-
++ std::string Lib32 = "lib32";
+ std::string Lib64 = "lib";
+- bool Symlink;
+- if (!llvm::sys::fs::exists("/lib64", Exists) && Exists &&
+- (llvm::sys::fs::is_symlink("/lib64", Symlink) || !Symlink))
+- Lib64 = "lib64";
+
++ bool Exists;
+ std::string GccTriple = "";
+ if (Arch == llvm::Triple::arm) {
+ if (!llvm::sys::fs::exists("/usr/lib/gcc/arm-linux-gnueabi", Exists) &&