[cairo] Note for compiling cairo with Sun Studio on Solaris

Ginn Chen Ginn.Chen at Sun.COM
Wed Mar 31 02:12:44 PDT 2010


cairo now uses -pthread.
Sun Studio C compiler doesn't have this option, but it treats -pthread as option -p. (Prepares the object code to collect data for profiling with gprof(1). )
Then you will get an undefined symbol error ( _mcount ) at link time.

Then correct option for Sun C compiler is -mt -lpthread.

I don't know how to fix it gracefully in configure.ac.

Attached is a draft patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo_sun_c_pthread.diff
Type: application/octet-stream
Size: 810 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100331/676721a4/attachment-0001.obj>


More information about the cairo mailing list