[PATCH] D78535: libclc: Pass system libraries to the linker after llvm libraries
Jan Vesely via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 15:06:25 PDT 2020
jvesely added a comment.
In D78535#2010720 <https://reviews.llvm.org/D78535#2010720>, @tstellar wrote:
> This is the failing cmdline (from here https://github.com/tstellar/llvm-project/runs/587088911):
>
> /usr/bin/c++ CMakeFiles/prepare_builtins.dir/utils/prepare-builtins.cpp.o -o prepare_builtins -L/home/runner/work/llvm-project/llvm-project/build/lib -Wl,-rpath,/home/runner/work/llvm-project/llvm-project/build/lib -lz -lrt -ldl -ltinfo -lpthread -lm -lxml2 -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMTextAPI -lLLVMMCParser -lLLVMMC -lLLVMDebugInfoCodeView -lLLVMDebugInfoMSF -lLLVMBitReader -lLLVMCore -lLLVMRemarks -lLLVMBitstreamReader -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle
Looks like this is caused by Ubuntu enabling `-Wl,--as-needed` by default (since 11.10) [0]
[0] https://wiki.ubuntu.com/ToolChain/CompilerFlags#A-Wl.2C--as-needed
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78535/new/
https://reviews.llvm.org/D78535
More information about the llvm-commits
mailing list