<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      The actual problem was, lldYAML not being part of the linkline.<br>
      <br>
      <u><b>Commandline</b></u><br>
      <br>
      /usr/bin/c++   -std=c++11 -fPIC -fvisibility-inlines-hidden -Wall
      -W -Wno-unused-parameter -Wwrite-strings
      -Wno-missing-field-initializers -pedantic -Wno-long-long
      -Wno-maybe-uninitialized -Wnon-virtual-dtor -fno-rtti  
      CMakeFiles/linker-script-test.dir/linker-script-test.cpp.o  -o
      ../../../../bin/linker-script-test  -lrt -ldl -lcurses -lpthread
      -lz ../../../../lib/libLLVMSupport.so
      ../../../../lib/liblldReaderWriter.so
      ../../../../lib/libLLVMObject.so ../../../../lib/liblldCore.so
      ../../../../lib/libLLVMSupport.so ../../../../lib/liblldPasses.so
      -lrt -ldl -lcurses -lpthread -lz
      -Wl,-rpath,/usr2/seaswara/work/llvmtemp/llvm/llvm-build/lib <br>
      <br>
      <u><b>Fix</b></u><br>
      <br>
      diff --git a/utils/linker-script-test/CMakeLists.txt
      b/utils/linker-script-test/CMakeLists.txt<br>
      index dd540a7..5b28a1a 100644<br>
      --- a/utils/linker-script-test/CMakeLists.txt<br>
      +++ b/utils/linker-script-test/CMakeLists.txt<br>
      @@ -5,4 +5,5 @@ add_lld_executable(linker-script-test<br>
       target_link_libraries(linker-script-test<br>
         LLVMSupport<br>
         lldReaderWriter<br>
      +  lldYAML<br>
         )<br>
      <br>
      PS : If there is any sort of cyclic dependency, that should just
      be enclosed within --start-group/--end-group to avoid the
      dependency.<br>
      <br>
      Thanks<br>
      <br>
      Shankar Easwaran<br>
      <br>
      On 9/2/2013 5:09 AM, Joerg Sonnenberger wrote:<br>
    </div>
    <blockquote cite="mid:20130902100948.GA7744@britannica.bec.de"
      type="cite">
      <pre wrap="">Hi all,
when trying to build lld with BUILD_SHARED_LIBS=on, it fails due to a
dependency cyclic between lib/ReaderWriter and lib/ReaderWriter/YAML.
One possible solution is attached, but it is certainly not clean.

Joerg
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
llvm-commits mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation</pre>
  </body>
</html>