<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 09/03/2013 02:13 PM, Renato Golin
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMSE1kfbo3QWrsxFAB-_H-zBFCGkEqWyF9+iZu6X8ZS92zxx7g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi folks,
        <div><br>
        </div>
        <div>When cross-compiling LLVM to ARM, using CMake+Ninja, I
          realized that libxml2 depends on lzma, but the dependency is
          not explicit on the build.ninja file under the "build
          bin/c-index-test"'s LINK_LIBRARIES (which is the only one that
          cares about it).</div>
        <div><br>
        </div>
        <div>I couldn't find the place to add -llzma into the deps, and
          the only mention of libxml2 is in config-ix.cmake:</div>
        <div><br>
        </div>
        <div>
          <div>find_package(LibXml2)</div>
          <div>if (LIBXML2_FOUND)</div>
          <div>
              set(CLANG_HAVE_LIBXML 1)</div>
          <div>endif ()</div>
        </div>
        <div><br>
        </div>
        <div>Which I could do the same with lzma? Any ideas on what the
          problem is, and possibly how to fix it?</div>
      </div>
    </blockquote>
    <br>
    libxml2 comes with a 'xml2-config' shell script to get the right
    compilation / linking flags for the platform libxml2 was built on.<br>
    <br>
    Is '<code>xml2-config --libs' <font face="sans-serif">giving </font></code>the
    required depencies ?<br>
    <br>
    Cheers,<br>
    --<br>
    Arnaud A. de Grandmaison<br>
    <br>
    <blockquote
cite="mid:CAMSE1kfbo3QWrsxFAB-_H-zBFCGkEqWyF9+iZu6X8ZS92zxx7g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>thanks,</div>
        <div>--renato</div>
        <div><br>
        </div>
        <div>PS: The work around is to edit the build.ninja file
          manually after CMake runs, but that's sub-optimal.</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Arnaud A. de Grandmaison</pre>
  </body>
</html>