summaryrefslogtreecommitdiff
path: root/community-testing/llvm/enable-lto.patch
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-04-12 11:24:37 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-04-12 11:24:37 -0300
commit1f52af629b1911ab027ef9c5d4d5903b48792050 (patch)
treee975475390c79c3dd975c95091f3bb33beff24e5 /community-testing/llvm/enable-lto.patch
parent951244a3e5bdc5f2f029f6550b46e5a06d1bfa26 (diff)
parent28b5bbf3fee0627993658e096eadab71c2779912 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community-testing/llvm/PKGBUILD community/dsniff/PKGBUILD community/ngrep/PKGBUILD community/virtualbox/PKGBUILD extra/gstreamer0.10-good/PKGBUILD extra/lirc/PKGBUILD extra/mc/PKGBUILD extra/mesa/PKGBUILD extra/xfburn/PKGBUILD testing/gnome-panel/PKGBUILD
Diffstat (limited to 'community-testing/llvm/enable-lto.patch')
-rw-r--r--community-testing/llvm/enable-lto.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/community-testing/llvm/enable-lto.patch b/community-testing/llvm/enable-lto.patch
new file mode 100644
index 000000000..40d93104a
--- /dev/null
+++ b/community-testing/llvm/enable-lto.patch
@@ -0,0 +1,36 @@
+Index: lib/Driver/ToolChains.cpp
+===================================================================
+--- lib/Driver/ToolChains.cpp (revision 123373)
++++ lib/Driver/ToolChains.cpp (working copy)
+@@ -1398,11 +1398,11 @@
+ Lib = Lib64;
+ }
+
+- llvm::sys::Path LinkerPath(Base + "/../../../../" + GccTriple + "/bin/ld");
++ llvm::sys::Path LinkerPath(Base + "/../../../../" + GccTriple + "/bin/ld.gold");
+ if (!llvm::sys::fs::exists(LinkerPath.str(), Exists) && Exists)
+ Linker = LinkerPath.str();
+ else
+- Linker = GetProgramPath("ld");
++ Linker = GetProgramPath("ld.gold");
+
+ LinuxDistro Distro = DetectLinuxDistro(Arch);
+
+Index: lib/Driver/Tools.cpp
+===================================================================
+--- lib/Driver/Tools.cpp (revision 123373)
++++ lib/Driver/Tools.cpp (working copy)
+@@ -3412,11 +3412,11 @@
+ }
+ }
+
+- if (Args.hasArg(options::OPT_use_gold_plugin)) {
++ // if (Args.hasArg(options::OPT_use_gold_plugin)) {
+ CmdArgs.push_back("-plugin");
+ std::string Plugin = ToolChain.getDriver().Dir + "/../lib/LLVMgold.so";
+ CmdArgs.push_back(Args.MakeArgString(Plugin));
+- }
++ // }
+
+ C.addCommand(new Command(JA, *this, ToolChain.Linker.c_str(), CmdArgs));
+ }