<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,7 +8,13 @@ dir_config('llvm', `llvm-config --includedir`.strip, `llvm-config --libdir`.stri
 have_library('stdc++')
 have_library('pthread')
 
-with_ldflags(`llvm-config --libs all`) do 
+# This is a workaround for a dependency bug in llvm-config. See:
+# &lt;https://mail.gna.org/public/etoile-discuss/2008-10/msg00014.html&gt;
+# &lt;https://mail.gna.org/public/etoile-discuss/2008-10/msg00015.html&gt;
+# &lt;http://svn.gna.org/viewcvs/etoile?rev=3694&amp;view=rev&gt;
+components = `llvm-config --libs all`.strip
+components = components.split(/\s+/).reject { |lib| lib =~ /LLVMCBase/ }.join(' ')
+
+with_ldflags([`llvm-config --ldflags`.strip, components].join(' ').strip) do
   create_makefile(extension_name)
 end
-</diff>
      <filename>ext/extconf.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fea9918267ba2fb220548051044b5016b0effc1a</id>
    </parent>
  </parents>
  <author>
    <name>Arto Bendiken</name>
    <email>arto@bendiken.net</email>
  </author>
  <url>http://github.com/tombagby/llvmruby/commit/e607c6585a6c0aaefeb89feeb1cd37c8f48ecfb8</url>
  <id>e607c6585a6c0aaefeb89feeb1cd37c8f48ecfb8</id>
  <committed-date>2008-11-20T11:02:37-08:00</committed-date>
  <authored-date>2008-11-15T23:07:54-08:00</authored-date>
  <message>Fixed linker flags and implemented a workaround for an LLVM 2.4 bug in llvm-config that was causing dlopen(ext/llvmruby.bundle) to fail due to undefined symbols such as _OutputFilename.</message>
  <tree>cc63ece74611b95ab01fbedd1f98aead1d887cc4</tree>
  <committer>
    <name>Christian Plessl</name>
    <email>christian@plesslweb.ch</email>
  </committer>
</commit>
