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.
- data/ext/extconf.rb +8 -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
|
-
|
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
|
-
|