[cairo-bugs] [Bug 86210] New: -Wlinker vs -Wl,

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 12 07:48:33 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=86210

            Bug ID: 86210
           Summary: -Wlinker vs -Wl,
           Product: cairo
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: minor
          Priority: medium
         Component: quartz backend
          Assignee: vladimir at pobox.com
          Reporter: dmacks at netspace.org
        QA Contact: cairo-bugs at cairographics.org

In configure.ac CAIRO_ENABLE_SURFACE_BACKEND...

>quartz_LIBS="-Xlinker -framework -Xlinker CoreGraphics"

and

>quartz_LIBS="-Xlinker -framework -Xlinker ApplicationServices"

The -framework flag takes CoreGraphics or ApplicationServices as its own second
argument, but the syntax here suggests that -framework and CG or AS are two
independent linker flags...easy for a brain-dead build-tool to accidentally not
keep them in order, or to purge the "duplicate" -framework one unless it knows
that this is really a tied pair. A alternative that keeps -framework and its
argument bound together, both for reading and for non-breakage by parsers, is
-Wl,, which is specifically documented in the clang/gcc manpages as a way to
pass flags that take arguments:

>quartz_LIBS="-Wl,-framework,CoreGraphics"
>quartz_LIBS="-Wl,-framework,ApplicationServices"

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20141112/30b1b50e/attachment.html>


More information about the cairo-bugs mailing list