triez 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/extconf.rb +1 -1
- data/lib/triez.rb +1 -1
- metadata +1 -1
data/ext/extconf.rb
CHANGED
@@ -23,7 +23,7 @@ mkdir_p build_dir
|
|
23
23
|
cd build_dir
|
24
24
|
unless File.exist?('libtries.a')
|
25
25
|
cc = ENV['CC'] || RbConfig::CONFIG['CC']
|
26
|
-
cc = [cc, '-O3', '-std=c99', '-Wall', '-pedantic', '-c']
|
26
|
+
cc = [cc, '-O3', '-std=c99', '-Wall', '-pedantic', '-fPIC', '-c']
|
27
27
|
ar = RbConfig::CONFIG['AR']
|
28
28
|
ar = 'ar' unless File.exist?(ar)
|
29
29
|
sh *cc, '-I..', *Dir.glob("../hat-trie/*.c")
|
data/lib/triez.rb
CHANGED