leveldb-ruby 0.9 → 0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/ext/leveldb/extconf.rb +6 -3
  2. metadata +2 -2
@@ -8,8 +8,11 @@ Dir.chdir "../ext/leveldb"
8
8
  CONFIG['LDSHARED'] = "$(CXX) -shared"
9
9
 
10
10
  $CFLAGS << " -I../../leveldb/include"
11
- $CFLAGS.sub! "-arch i386", ""
12
- $LDFLAGS.sub! "-arch i386", ""
13
- $LIBS << " -L../../leveldb -lleveldb -lruby"
11
+ $LIBS << " -L../../leveldb -lleveldb"
12
+ if RUBY_PLATFORM =~ /darwin/
13
+ $CFLAGS.sub! "-arch i386", ""
14
+ $LDFLAGS.sub! "-arch i386", ""
15
+ $LIBS << " -lruby" # whyyyyy
16
+ end
14
17
 
15
18
  create_makefile "leveldb/leveldb"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leveldb-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.9'
4
+ version: '0.10'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-26 14:01:14.000000000 -07:00
12
+ date: 2011-10-26 14:26:21.000000000 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
  description: LevelDB-Ruby is a Ruby binding to LevelDB.