artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cda68ae
)
Revert: llvm: openbsd driver had one -lcompiler_rt too many
author
gnezdo
<gnezdo@openbsd.org>
Sun, 29 Aug 2021 21:32:52 +0000
(21:32 +0000)
committer
gnezdo
<gnezdo@openbsd.org>
Sun, 29 Aug 2021 21:32:52 +0000
(21:32 +0000)
Suggested by jca@ that kettenis@ looks at it first.
gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
patch
|
blob
|
history
diff --git
a/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
b/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
index
7d3837e
..
5333cec
100644
(file)
--- a/
gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
+++ b/
gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
@@
-189,6
+189,9
@@
void openbsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
CmdArgs.push_back(ToolChain.getCompilerRTArgString(Args, "builtins"));
linkXRayRuntimeDeps(ToolChain, CmdArgs);
}
+ // FIXME: For some reason GCC passes -lgcc before adding
+ // the default system libraries. Just mimic this for now.
+ CmdArgs.push_back("-lcompiler_rt");
if (Args.hasArg(options::OPT_pthread)) {
if (!Args.hasArg(options::OPT_shared) && Args.hasArg(options::OPT_pg))