svn commit: r40970 - head/en_US.ISO8859-1/books/porters-handbook

Eitan Adler eadler at freebsd.org
Thu Feb 14 16:20:37 UTC 2013


On 14 February 2013 11:14, Alex Dupre <ale at freebsd.org> wrote:
> Eitan Adler ha scritto:
>> Because a program that uses pthreads *must* use -pthread to both
>> compile and link and not use -lpthread.
>
> Is this the reason we have the following in bsd.port.mk? :-)
>
> PTHREAD_CFLAGS?=

Every time the -pthread vs -lpthread discussion comes up this is brought up.
I have no idea why this is, or who committed it.

-pthread also defines certain preproccessor flags and may link in
additional libraries.

> We are not talking about correct programming standards, we are talking
> about porting software on FreeBSD. Do we really want port maintainers to
> do extra work for 'purity'?

Perhaps if one is changing other things it doesn't hurt to also fix
this.  It isn't a big priority though.


-- 
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams


More information about the svn-doc-all mailing list