[Pixman] Build system patches for threading.

Siarhei Siamashka siarhei.siamashka at gmail.com
Mon Jul 12 06:48:45 PDT 2010

On Sunday 11 July 2010 13:24:43 M Joonas Pihlaja wrote:
> Check that the OpenMP pragmas don't cause link errors.
> This patch adds extra guards around our use of OpenMP pragmas and checks that
> the pragmas won't cause link errors. This fixes the build on Tru64 and
> Solaris with the native compilers and clang. 

Do you have any thought about what could be the root cause of this problem?

Now I see a potential case when it can fail: autotools fail to detect OpenMP 
support (and the right options for the linker), but the compiler generates some 
code for the pragmas.

Could you try wrapping OpenMP pragmas into '#ifdef _OPENMP' (it is a predefined 
macro from OpenMP standard) and see whether it helps?

Also I wonder whether autotools detect OpenMP support in Solaris properly. 
Searching on the Internet reveals that '-xopenmp' might be the right option 

Best regards,
Siarhei Siamashka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/pixman/attachments/20100712/017c7717/attachment.pgp>

More information about the Pixman mailing list