ffi-inline 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,9 +12,9 @@ Compiler.define :gcc do
12
12
  return output if File.exists?(output)
13
13
 
14
14
  unless system(if RbConfig::CONFIG['target_os'] =~ /mswin|mingw/
15
- "sh -c '#{ldshared} -o #{output.shellescape} #{input.shellescape} #{libs}' 2>#{log.shellescape}"
15
+ "sh -c '#{ldshared} #{ENV['CFLAGS']} -o #{output.shellescape} #{input.shellescape} #{libs}' 2>#{log.shellescape}"
16
16
  else
17
- "#{ldshared} -o #{output.shellescape} #{input.shellescape} #{libs} 2>#{log.shellescape}"
17
+ "#{ldshared} #{ENV['CFLAGS']} -o #{output.shellescape} #{input.shellescape} #{libs} 2>#{log.shellescape}"
18
18
  end)
19
19
  raise CompilationError.new(log)
20
20
  end
@@ -43,9 +43,9 @@ Compiler.define :gcc do
43
43
 
44
44
  def ldshared
45
45
  if RbConfig::CONFIG['target_os'] =~ /darwin/
46
- "gcc -dynamic -bundle -fPIC #{options}"
46
+ "gcc -dynamic -bundle -fPIC #{options} #{ENV['LDFLAGS']}"
47
47
  else
48
- "gcc -shared -fPIC #{options}"
48
+ "gcc -shared -fPIC #{options} #{ENV['LDFLAGS']}"
49
49
  end
50
50
  end
51
51
 
@@ -13,9 +13,9 @@ Compiler.define Compiler[:gcc], :gxx, 'g++' do
13
13
 
14
14
  def ldshared
15
15
  if RbConfig::CONFIG['target_os'] =~ /darwin/
16
- "g++ -dynamic -bundle -fPIC #{options}"
16
+ "g++ -dynamic -bundle -fPIC #{options} #{ENV['LDFLAGS']}"
17
17
  else
18
- "g++ -shared -fPIC #{options}"
18
+ "g++ -shared -fPIC #{options} #{ENV['LDFLAGS']}"
19
19
  end
20
20
  end
21
21
  end
@@ -12,9 +12,9 @@ Compiler.define :tcc do
12
12
  return output if File.exists?(output)
13
13
 
14
14
  unless system(if RbConfig::CONFIG['target_os'] =~ /mswin|mingw/
15
- "sh -c '#{ldshared} #{libs} -o #{output.shellescape} #{input.shellescape}' 2>#{log.shellescape}"
15
+ "sh -c '#{ldshared} #{ENV['CFLAGS']} #{libs} -o #{output.shellescape} #{input.shellescape}' 2>#{log.shellescape}"
16
16
  else
17
- "#{ldshared} #{libs} -o #{output.shellescape} #{input.shellescape} 2>#{log.shellescape}"
17
+ "#{ldshared} #{ENV['CFLAGS']} #{libs} -o #{output.shellescape} #{input.shellescape} 2>#{log.shellescape}"
18
18
  end)
19
19
  raise CompilationError.new(log)
20
20
  end
@@ -43,9 +43,9 @@ Compiler.define :tcc do
43
43
 
44
44
  def ldshared
45
45
  if RbConfig::CONFIG['target_os'] =~ /mswin|mingw/
46
- "tcc -rdynamic -shared -fPIC #{options}"
46
+ "tcc -rdynamic -shared -fPIC #{options} #{ENV['LDFLAGS']}"
47
47
  else
48
- "tcc -shared #{options}"
48
+ "tcc -shared #{options} #{ENV['LDFLAGS']}"
49
49
  end
50
50
  end
51
51
 
@@ -1,7 +1,7 @@
1
1
  module FFI
2
2
 
3
3
  module Inliner
4
- Version = '0.0.2'
4
+ Version = '0.0.3'
5
5
  end
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-inline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-16 00:00:00.000000000 Z
12
+ date: 2012-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
16
- requirement: &13638240 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: 0.4.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *13638240
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.4.0
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rake
27
- requirement: &13634060 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *13634060
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rspec
38
- requirement: &13632840 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,7 +53,12 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *13632840
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  description:
48
63
  email: meh@paranoici.org
49
64
  executables: []
@@ -85,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
100
  version: '0'
86
101
  requirements: []
87
102
  rubyforge_project:
88
- rubygems_version: 1.8.11
103
+ rubygems_version: 1.8.23
89
104
  signing_key:
90
105
  specification_version: 3
91
106
  summary: Inline C/C++ in Ruby easily and cleanly.