On Mon, Feb 28, 2011 at 22:43, Khem Raj <[email protected]> wrote:
> On Mon, Feb 28, 2011 at 2:27 PM, Otavio Salvador
> <[email protected]> wrote:
>> On Mon, Feb 28, 2011 at 22:19, Khem Raj <[email protected]> wrote:
>> ...
>>> Does -pthread get passed to linking step too or not. if it does then
>>> it might the order at which libpthread appears and linker picks the
>>> symbols from.
>>
>> It is done as suggested by gcc docs. It is passed on CFLAGS and
>> supposely gcc ought to take care of adding it to linking flags
>> automatically. No?
>
> gcc could be used for linking too and then it should consider the LDFLAGS
> CFLAGS are for compiling.

>From gcc manpage:

       -pthread
           Adds support for multithreading with the pthreads library.
This option sets flags for both the preprocessor and linker.

It seems to me that it sets both automatically, in this case.

-- 
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to