bio-bwa 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bio-bwa.gemspec +1 -1
  3. data/ext/mkrf_conf.rb +7 -4
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bio-bwa}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Francesco Strozzi"]
@@ -7,9 +7,12 @@ path = File.expand_path(File.dirname(__FILE__))
7
7
  ext = Bio::BWA::Library.lib_extension
8
8
 
9
9
  flags = ""
10
- case ext
11
- when "so" then flags = "-shared -Wl,-soname,libbwa.so"
12
- when "dylib" then flags = "-bundle -undefined dynamic_lookup -flat_namespace"
10
+ compile = ""
11
+ if ext == "so" then
12
+ flags = "-shared -Wl,-soname,libbwa.so"
13
+ compile = " -fPIC"
14
+ elsif ext == "dylib" then
15
+ flags = "-bundle -undefined dynamic_lookup -flat_namespace"
13
16
  end
14
17
 
15
18
 
@@ -28,7 +31,7 @@ SRC = FileList.new(source)
28
31
  OBJ_SRC = SRC.ext('o')
29
32
 
30
33
  rule '.o' => '.c' do |t|
31
- sh "gcc -c -g -Wall -O2 -DHAVE_PTHREAD "+t.source+" -o "+t.name
34
+ sh "gcc#{compile} -c -g -Wall -O2 -DHAVE_PTHREAD "+t.source+" -o "+t.name
32
35
  end
33
36
 
34
37
  task :compile_gen => OBJ_GEN do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bio-bwa
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Francesco Strozzi
@@ -193,7 +193,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
193
  requirements:
194
194
  - - ">="
195
195
  - !ruby/object:Gem::Version
196
- hash: -1510626449413692226
196
+ hash: 4340680635889925371
197
197
  segments:
198
198
  - 0
199
199
  version: "0"