[PATCH] D51440: [ToolChains] Link to compiler-rt with -L + -l when possible
Martin Storsjö via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 29 09:57:17 PDT 2018
mstorsjo created this revision.
mstorsjo added reviewers: manojgupta, chandlerc, beanz.
Herald added subscribers: aheejin, sbc100, dberris, srhines.
Herald added a reviewer: javed.absar.
This avoids a libtool issue (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866), where libtool fails to pick up the default linked libraries when they are referred to via a direct path to the static library, instead of as a -L + -l pair, as for libgcc.
Or is there some reason not to add the clang_rt dir to the linker path with -L?
Repository:
rC Clang
https://reviews.llvm.org/D51440
Files:
lib/Driver/ToolChains/CommonArgs.cpp
test/Driver/arm-compiler-rt.c
test/Driver/fuchsia.c
test/Driver/fuchsia.cpp
test/Driver/linux-ld.c
test/Driver/wasm-toolchain.c
test/Driver/wasm-toolchain.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51440.163125.patch
Type: text/x-patch
Size: 7898 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180829/ddd57cd8/attachment.bin>
More information about the cfe-commits
mailing list