[PATCH] D40326: Fix static link on debian

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 14:09:40 PST 2017


In any case. Desirable or not that is what the libstdc++ implementation
is and we have to live with it.

We have to do something like this in CMAKE or just report an error
saying that we don't support static linking when using libstdc++.

Cheers,
Rafael

Joerg Sonnenberger via llvm-commits <llvm-commits at lists.llvm.org>
writes:

> On Mon, Nov 27, 2017 at 06:16:50PM +0000, Chris Bieneman via Phabricator via llvm-commits wrote:
>> It's undesirable for user code that is using std::thread to requirer
>> the user to list pthread as a dependency, and even worse if the pthread
>> library needs to be linked with extra flags.
>
> I disagree on this. The presence of pthread often adds overhead in other
> places, so making it required to link it in explicitly certainly makes
> sense. What doesn't make sense is to randomly crash. I.e. there is a
> huge difference between sane failure modes ("you can't create threads")
> and crashing.
>
> Joerg
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list