summaryrefslogtreecommitdiff
path: root/ext/openbabel/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openbabel/extconf.rb')
-rw-r--r--ext/openbabel/extconf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openbabel/extconf.rb b/ext/openbabel/extconf.rb
index da77116..fc7de95 100644
--- a/ext/openbabel/extconf.rb
+++ b/ext/openbabel/extconf.rb
@@ -29,12 +29,12 @@ begin
end
Dir.chdir ob_bindings_dir do
puts "Compiling and instaling OpenBabel Ruby bindings."
- `sed -i 's/Init_OpenBabel/Init_openbabel/g' *cpp`
+ `sed -i -e 's/Init_OpenBabel/Init_openbabel/g' *cpp`
# get include and lib from pkg-config
ob_include=`pkg-config openbabel-2.0 --cflags-only-I`.sub(/\s+/,'').sub(/-I/,'')
ob_lib=`pkg-config openbabel-2.0 --libs-only-L`.sub(/\s+/,'').sub(/-L/,'')
`ruby extconf.rb --with-openbabel-include=#{ob_include} --with-openbabel-lib=#{ob_lib}`
- `sed -i 's/-flat_namespace//' Makefile`
+ `sed -i -e 's/-flat_namespace//' Makefile`
puts `make`
end
FileUtils.cp(ob_bindings_dir+"/openbabel.so", "./")