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. http://reviews.llvm.org/D11153 _______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits