Permalink
Browse files

use OPT environment variable to specify -fPIC

Thanks to schmurfy for pointing this out.
  • Loading branch information...
1 parent 017933f commit 34c147dfc5681d1c449cb7f313c680f232a0238b @wmorgan committed Jun 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/leveldb/extconf.rb
View
@@ -3,7 +3,7 @@
require "./platform.rb"
Dir.chdir "../../leveldb"
-system "make libleveldb.a" or abort
+system "OPT=\"-O2 -DNDEBUG -fPIC\" make libleveldb.a" or abort
Dir.chdir "../ext/leveldb"
set_platform_specific_variables!

0 comments on commit 34c147d

Please sign in to comment.