plessl-llvmruby 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/extconf.rb +8 -2
  2. metadata +1 -1
data/ext/extconf.rb CHANGED
@@ -8,7 +8,13 @@ dir_config('llvm', `llvm-config --includedir`.strip, `llvm-config --libdir`.stri
8
8
  have_library('stdc++')
9
9
  have_library('pthread')
10
10
 
11
- with_ldflags(`llvm-config --libs all`) do
11
+ # This is a workaround for a dependency bug in llvm-config. See:
12
+ # <https://mail.gna.org/public/etoile-discuss/2008-10/msg00014.html>
13
+ # <https://mail.gna.org/public/etoile-discuss/2008-10/msg00015.html>
14
+ # <http://svn.gna.org/viewcvs/etoile?rev=3694&view=rev>
15
+ components = `llvm-config --libs all`.strip
16
+ components = components.split(/\s+/).reject { |lib| lib =~ /LLVMCBase/ }.join(' ')
17
+
18
+ with_ldflags([`llvm-config --ldflags`.strip, components].join(' ').strip) do
12
19
  create_makefile(extension_name)
13
20
  end
14
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plessl-llvmruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Bagby