Bug 23864 - Enable cairo-trace on Mac
Summary: Enable cairo-trace on Mac
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.9.3
Hardware: All Mac OS X (All)
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-11 08:38 UTC by Dima
Modified: 2009-11-09 09:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to enable cairo-trace on MacOS X (4.83 KB, patch)
2009-11-03 14:03 UTC, Andrea Canciani
Details | Splinter Review

Description Dima 2009-09-11 08:38:41 UTC
I'm talking about --enable-trace option.

In the configure.ac it depends on have_ld variable which is set to yes on *-linux* and *-*bsd* hosts since they support LD_PRELOAD enviromental variable.

On Mac's there is DYLD_INSERT_LIBRARIES enviromental variable which can be used similar to LD_PRELOAD

More info here

http://blogs.sun.com/DatabaseEmporium/entry/where_is_ld_preload_under

Hopefully you will be able to --enable-trace on macs as well. This is a wishlist bug    I'll use --disable-trace for now. I really don't know anything about cairo i'm trying to compile gtk program =)
Comment 1 Andrea Canciani 2009-11-03 14:03:04 UTC
Created attachment 30947 [details] [review]
Patch to enable cairo-trace on MacOS X

This patch makes cairo-trace a shared library instead of a module.
I don't know if there are good reasons to have it as a module, but it looks like modules cannot be preloaded in MacOS X.
Only tested on MacOS 10.5. Please check it doesn't break cairo-trace on linux (or bsd/solaris, it should be the same) before committing.
Comment 2 Chris Wilson 2009-11-09 09:09:37 UTC
Pushed to master, thanks Andrea.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.