abeserminji added a comment.

I am not sure if -static option passed as --cflag to lnt runtest enters the 
LDFLAGS. I guess it doesn't. 
But if there is a way to check which options are passed as --cflags, we might 
be able to add -Wl, -whole-archive -lpthread -Wl -no-whole-archive only in case 
when static is used.
That would be my preferable option in this situation, but I couldn't find any 
clues on how to do that.

It is possible to modify an algorithm in such way. Shouldn't differ too much.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56836/new/

https://reviews.llvm.org/D56836



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to