2011-12-19 12:48:09 +00:00
|
|
|
diff -Naur clang-3.0.src-orig/lib/Driver/ToolChains.cpp clang-3.0.src/lib/Driver/ToolChains.cpp
|
|
|
|
--- clang-3.0.src-orig/lib/Driver/ToolChains.cpp 2011-11-17 02:40:32.000000000 -0500
|
|
|
|
+++ clang-3.0.src/lib/Driver/ToolChains.cpp 2011-12-19 05:32:38.695513475 -0500
|
|
|
|
@@ -1800,6 +1800,7 @@
|
2011-10-19 05:14:55 +01:00
|
|
|
|
2011-12-19 12:48:09 +00:00
|
|
|
Linker = GetProgramPath("ld");
|
2011-10-19 05:14:55 +01:00
|
|
|
|
|
|
|
+#if 0
|
|
|
|
LinuxDistro Distro = DetectLinuxDistro(Arch);
|
|
|
|
|
2011-12-19 12:48:09 +00:00
|
|
|
if (IsOpenSuse(Distro) || IsUbuntu(Distro)) {
|
|
|
|
@@ -1882,6 +1883,7 @@
|
|
|
|
addPathIfExists(SysRoot + "/lib", Paths);
|
|
|
|
addPathIfExists(SysRoot + "/usr/lib/" + MultiarchTriple, Paths);
|
|
|
|
addPathIfExists(SysRoot + "/usr/lib", Paths);
|
2011-10-19 05:14:55 +01:00
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Linux::HasNativeLLVMSupport() const {
|
2011-12-19 12:48:09 +00:00
|
|
|
diff -Naur clang-3.0.src-orig/lib/Driver/Tools.cpp clang-3.0.src/lib/Driver/Tools.cpp
|
|
|
|
--- clang-3.0.src-orig/lib/Driver/Tools.cpp 2011-11-07 05:27:39.000000000 -0500
|
|
|
|
+++ clang-3.0.src/lib/Driver/Tools.cpp 2011-12-19 05:34:44.075325534 -0500
|
|
|
|
@@ -4306,6 +4306,7 @@
|
2011-10-19 05:14:55 +01:00
|
|
|
ToolChain.getArch() == llvm::Triple::thumb ||
|
|
|
|
(!Args.hasArg(options::OPT_static) &&
|
|
|
|
!Args.hasArg(options::OPT_shared))) {
|
|
|
|
+#if 0
|
|
|
|
CmdArgs.push_back("-dynamic-linker");
|
|
|
|
if (ToolChain.getArch() == llvm::Triple::x86)
|
|
|
|
CmdArgs.push_back("/lib/ld-linux.so.2");
|
2011-12-19 12:48:09 +00:00
|
|
|
@@ -4318,6 +4319,7 @@
|
|
|
|
CmdArgs.push_back("/lib64/ld64.so.1");
|
2011-10-19 05:14:55 +01:00
|
|
|
else
|
|
|
|
CmdArgs.push_back("/lib64/ld-linux-x86-64.so.2");
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
CmdArgs.push_back("-o");
|