[gs-bugs] [Bug 690009] New "cairo" output device pulls X dependency into main executable/library

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Jul 5 02:05:10 UTC 2010


--- Comment #8 from Hin-Tak Leung <hintak at ghostscript.com> 2010-07-05 02:05:08 UTC ---
Created an attachment (id=6426)
 --> (http://bugs.ghostscript.com/attachment.cgi?id=6426)
patch to make the cairo device built as a dynamic module

The patch converts the cairo device into a dynamic module like X11.so, as well
as fixing a few problems with the X11.so dynamic module which has not been
noted since the ESP merge.

CC_SHARED is only used for generating object files (rather than linking) so

This also changes a few $(GLCC) into $(GLCCSHARED) (addition of shared-library
needed object cflags) for a few targets which the X11.so needs.

BTW, dynamic module support entries for both Mac OS X (Darwin) and SunOS looks
a bit wrong - For Mac OS X, the X_DEVS variable is emptied but there is no
corresponding DYNAMIC_DEVS; For SunOS, -KPIC seems a sunstudio compiler (not
gcc) flag, but "-shared" elsewhere for dynamic module support is a gcc-ism. But
I guess we'll have to wait for active users for either platforms who want
dynamic module support for those platforms to work to test for changes/updates.

Please test if it works as intended (I tried the sympliest "./configure", "
./configure --enable-dynamic" and a few combinations of make/make so - you
probably have a few more configure flags added in).

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list