void-packages/srcpkgs/llvm/files/patches/cfe/cfe-008-remove-lgcc-when-using-compiler-rt.patch
Andrea Brancaleoni e8e81d004e llvm: update to 3.7.0.
- add patch debug messages
- update patches
- remove lld
- replace __ptrace_request with int on musl
- fix bug 22661
- include license
2015-09-10 23:21:44 +02:00

25 lines
816 B
Diff

From 75d91fe8d9219007069af02301565173bd5d0612 Mon Sep 17 00:00:00 2001
From: Andrea Brancaleoni <miwaxe@gmail.com>
Date: Tue, 8 Sep 2015 22:39:20 +0200
Subject: [PATCH 7/7] remove lgcc when using compiler rt
---
lib/Driver/Tools.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index b6bf7fc..665961a 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -2389,8 +2389,6 @@ static void addClangRT(const ToolChain &TC, const ArgList &Args,
CmdArgs.push_back(Args.MakeArgString(getCompilerRT(TC, "builtins")));
if (!TC.getTriple().isOSWindows()) {
- // FIXME: why do we link against gcc when we are using compiler-rt?
- CmdArgs.push_back("-lgcc_s");
if (TC.getDriver().CCCIsCXX())
CmdArgs.push_back("-lgcc_eh");
}
--
2.5.1