tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: any objections to adding -D_PTHREADS in mk/ and

On Thu, Oct 10, 2013 at 07:40:44AM +0200, Richard PALO wrote:
> Certain pthreads based applications specifically check for _PTHREADS 
> being defined, such as boost on solaris in which absence of this 
> CPPFLAGS issues this type of message:

The compiler is supposed to define that when used with -pthread:

   gcc -pthread -dM -E - < /dev/null | fgrep _PTHREADS

and compare w/o -pthread. If your compiler doesn't do that, add it to a
OS/compiler specific section, as Obata suggested.


Home | Main Index | Thread Index | Old Index