[PATCH] D56836: [mips] Include whole lpthread when using both -pthread and -static
Aleksandar Beserminji via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 17 07:00:53 PST 2019
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
More information about the cfe-commits
mailing list