[vlc-devel] [PATCH] Add detection of POSIX threads via cc -pthread

Rémi Denis-Courmont remi at remlab.net
Mon Oct 17 15:23:12 CEST 2011


On Mon, 17 Oct 2011 09:16:56 -0400, Brad <brad at comstyle.com> wrote:
> On 17/10/11 8:14 AM, Rémi Denis-Courmont wrote:
>> On Mon, 17 Oct 2011 06:58:47 -0400, Brad<brad at comstyle.com>  wrote:
>>> The following diff adds detection of POSIX threads linking via
>>> cc -pthread. This corrects the POSIX threads flag used for OpenBSD.
>>
>> This patch causes -pthread to be used instead of -lpthread on Linux.
> 
> For Linux that's normal. GCC on Linux provides a link spec for -pthread.

> That is fine.

I don't care! I don't want to use BSDism instead of standard stuff:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list