[PATCH] D11153: [Compiler-RT] If unwind/c++abi is set, don't include libgcc
compnerd at compnerd.org
Wed Jul 22 20:05:42 PDT 2015
compnerd added a comment.
In http://reviews.llvm.org/D11153#210023, @rengolin wrote:
> Would it work to always add "--as-needed -lgcc_s" and let -lunwind override the behaviour? Is that the semantics here?
I don't think that will work. The ordering of the arguments is important. The --as-needed will apply to gcc_s.so, but because there are symbols being referenced, it will be pulled even though -lunwind comes later without --as-needed. You need to either break compilation, assume the unwinder, or provide a switch.
More information about the llvm-commits