[PATCH] D56932: [Driver] [NetBSD] Pass default library search paths to linker
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 18 13:38:35 PST 2019
mgorny created this revision.
mgorny added reviewers: krytarowski, joerg, ruiu, chandlerc, rsmith.
Pass library search paths to linker as -L options, similarly to how
other toolchain drivers do it. This fixes compatibility with vanilla
LLD.
Bug report: https://bugs.llvm.org/show_bug.cgi?id=33155
// This is simplified version of D33726 <https://reviews.llvm.org/D33726>
Repository:
rC Clang
https://reviews.llvm.org/D56932
Files:
lib/Driver/ToolChains/NetBSD.cpp
Index: lib/Driver/ToolChains/NetBSD.cpp
===================================================================
--- lib/Driver/ToolChains/NetBSD.cpp
+++ lib/Driver/ToolChains/NetBSD.cpp
@@ -245,6 +245,7 @@
}
Args.AddAllArgs(CmdArgs, options::OPT_L);
+ ToolChain.AddFilePathLibArgs(Args, CmdArgs);
Args.AddAllArgs(CmdArgs, options::OPT_T_Group);
Args.AddAllArgs(CmdArgs, options::OPT_e);
Args.AddAllArgs(CmdArgs, options::OPT_s);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56932.182596.patch
Type: text/x-patch
Size: 443 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190118/26f20062/attachment.bin>
More information about the cfe-commits
mailing list