<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - -Wlinker vs -Wl,"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=86210">86210</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-Wlinker vs -Wl,
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>quartz backend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>vladimir@pobox.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dmacks@netspace.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In configure.ac CAIRO_ENABLE_SURFACE_BACKEND...

<span class="quote">>quartz_LIBS="-Xlinker -framework -Xlinker CoreGraphics"</span >

and

<span class="quote">>quartz_LIBS="-Xlinker -framework -Xlinker ApplicationServices"</span >

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:

<span class="quote">>quartz_LIBS="-Wl,-framework,CoreGraphics"
>quartz_LIBS="-Wl,-framework,ApplicationServices"</span ></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>