[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


            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


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


>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:


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