Bug 23864

Summary: Enable cairo-trace on Mac
Product: cairo Reporter: Dima <dmitrij.ledkov>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.9.3   
Hardware: All   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch to enable cairo-trace on MacOS X

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.